Add tests for 2 browser snippets

This commit is contained in:
Angelos Chalaris
2018-10-31 20:00:32 +02:00
parent 231941fed1
commit 082baa8613
2 changed files with 10 additions and 0 deletions

View File

@ -4,3 +4,6 @@ const {currentURL} = require('./_30s.js');
test('currentURL is a Function', () => {
expect(currentURL).toBeInstanceOf(Function);
});
test('currentURL returns the appropriate value', () => {
expect(currentURL()).toEqual(global.location.href);
});