diff --git a/test.js b/test.js index b10bc54..6ed0c27 100644 --- a/test.js +++ b/test.js @@ -2,9 +2,9 @@ "use strict"; var atob = require('.'); - var encoded = "SGVsbG8sIFdvcmxkIQ==" + var encoded = "SGVsbG8sIFdvcmxkIQ=="; var unencoded = "Hello, World!"; - var malformed = "SGVsbG8s{" + var malformed = "SGVsbG8s{"; /* , encoded = "SGVsbG8sIBZM" , unencoded = "Hello, 世界" @@ -16,7 +16,7 @@ } try { - const decoded = atob(malformed) + var decoded = atob(malformed); console.log('[FAIL]', malformed, decoded); return; } catch (_) {