Skip to content

Instantly share code, notes, and snippets.

@stenington
Created March 12, 2013 21:54
Show Gist options
  • Save stenington/ffe7fda67e05b404bd4c to your computer and use it in GitHub Desktop.
Save stenington/ffe7fda67e05b404bd4c to your computer and use it in GitHub Desktop.
Example of an addition to isSignedBadge test that will cause it to fail
diff --git a/test/validator-utils.test.js b/test/validator-utils.test.js
index 9f04e37..e238766 100644
--- a/test/validator-utils.test.js
+++ b/test/validator-utils.test.js
@@ -41,6 +41,7 @@ test('validator.absolutize: all absolute', function (t) {
});
test('validator.isSignedBadge', function (t) {
+ t.same(validator.isSignedBadge("http://sub.domain.org"), false);
t.same(validator.isSignedBadge(sign('sup')), false);
t.same(validator.isSignedBadge(sign({some: 'thing'})), false);
t.same(validator.isSignedBadge(sign({recipient: 'yep'})), true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment