Skip to content

Commit

Permalink
Ensure support for the latest version of deno.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjeffburke committed Nov 28, 2020
1 parent 8fa6a25 commit 907f1d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ test-plugins: ${TARGETS}
.PHONY: test-deno
test-deno: ${TARGETS} build/tests.esm.js
if [ ! -f ~/.deno/bin/deno ]; then \
curl -fsSL https://deno.land/x/install/install.sh | sh -s v0.36.0; \
curl -fsSL https://deno.land/x/install/install.sh | sh; \
fi;
~/.deno/bin/deno test-deno/deno-test.js
~/.deno/bin/deno run test-deno/deno-test.js

.PHONY: travis-coverage
travis-coverage: clean coverage
Expand Down
3 changes: 2 additions & 1 deletion lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,8 @@ module.exports = function (expect) {
'stack',
'stackArray',
'__stackCleaned__',
'isOperational', // added by the promise implementation
'isOperational', // added by the promise implementation,
'__callSiteEvals', // attached by deno
].reduce((result, prop) => {
result[prop] = true;
return result;
Expand Down
4 changes: 4 additions & 0 deletions test-deno/deno-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ 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);
});

0 comments on commit 907f1d3

Please sign in to comment.