Files
30-seconds-of-code/test/atob/atob.test.js
Angelos Chalaris 4f7da1be9b Test migration to jest by hand
Apparently using regular expressions is way easier.
2018-06-18 15:15:56 +03:00

16 lines
330 B
JavaScript

const expect = require('expect');
const atob = require('./atob.js');
test('atob is a Function', () => {
expect(atob).toBeInstanceOf(Function);
});
test('atob("Zm9vYmFy") equals "foobar"', () => {
expect(atob('Zm9vYmFy'), 'foobar').toBe()
});
test('atob("Z") returns ""', () => {
expect(atob('Z'), '').toBe()
});