Tests for atob, btoa

This commit is contained in:
Angelos Chalaris
2018-01-24 17:33:38 +02:00
parent ee39189dff
commit 0b4197b714
3 changed files with 12 additions and 6 deletions

View File

@ -5,9 +5,11 @@ test('Testing atob', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof atob === 'function', 'atob is a Function');
t.equals(atob('Zm9vYmFy'), 'foobar', 'atob("Zm9vYmFy") equals "foobar"');
t.equals(atob('Z'), '', 'atob("Z") returns ""');
//t.deepEqual(atob(args..), 'Expected');
//t.equal(atob(args..), 'Expected');
//t.false(atob(args..), 'Expected');
//t.throws(atob(args..), 'Expected');
t.end();
});
});