Skip to content

Commit

Permalink
Fix deno build
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 25, 2021
1 parent e84cedc commit 5222c08
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -84,7 +84,7 @@ test-deno: ${TARGETS} build/tests.esm.js
if [ ! -f ~/.deno/bin/deno ]; then \
curl -fsSL https://deno.land/x/install/install.sh | sh; \
fi;
~/.deno/bin/deno run test-deno/deno-test.js
~/.deno/bin/deno run --location http://localhost test-deno/deno-test.js

.PHONY: travis-coverage
travis-coverage: clean coverage
Expand Down
4 changes: 0 additions & 4 deletions test-deno/deno-test.js
Expand Up @@ -3,10 +3,6 @@ import './deno-setup.js';
import '../test/common.js';
import '../build/tests.esm.js';

window.location = {
search: '',
};

window.mocha.run((failureCount) => {
Deno.exit(failureCount > 0 ? 1 : 0);
});
1 change: 1 addition & 0 deletions test/types/error-type.spec.js
Expand Up @@ -49,6 +49,7 @@ describe('Error type', () => {

const isIE =
typeof navigator !== 'undefined' &&
typeof navigator.userAgent === 'string' &&
navigator.userAgent.indexOf('Trident') !== -1;

describe('with a custom Error class inheriting from Error', () => {
Expand Down
1 change: 1 addition & 0 deletions test/types/function-type.spec.js
Expand Up @@ -16,6 +16,7 @@ describe('function type', () => {

const isIE =
typeof navigator !== 'undefined' &&
typeof navigator.userAgent === 'string' &&
navigator.userAgent.indexOf('Trident') !== -1;

if (!isIE) {
Expand Down

0 comments on commit 5222c08

Please sign in to comment.