-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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