Skip to content

Commit

Permalink
test: Run more tests in the browser environment
Browse files Browse the repository at this point in the history
  • Loading branch information
slavek-kucera authored Feb 21, 2024
1 parent 32b2500 commit e32d812
Show file tree
Hide file tree
Showing 15 changed files with 376 additions and 391 deletions.
3 changes: 2 additions & 1 deletion clients/vscode-hlasmplugin/build/bin/bundle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function fileExists(dir, file) {
}

function getWebPlugin(replaceAssert) {
const assertReplacement = [ok, strictEqual, match, deepStrictEqual];
const assertReplacement = [ok, strictEqual, notStrictEqual, match, deepStrictEqual];
const assertReplacementSource = assertReplacement.map(x => 'export ' + x.toString()).join('\n') + deepStrictEqualImpl.toString();
return {
name: 'web-substitution',
Expand All @@ -112,6 +112,7 @@ function getWebPlugin(replaceAssert) {

function ok(e, msg) { if (!e) throw Error(msg); }
function strictEqual(l, r, msg) { if (!Object.is(l, r)) throw Error(msg); }
function notStrictEqual(l, r, msg) { if (Object.is(l, r)) throw Error(msg); }
function match(s, r, msg) { if (!r.test(s)) throw Error(msg); }
function deepStrictEqual(l, r, msg) {
deepStrictEqualImpl(l, r, msg, { id: 0, map: new Map() });
Expand Down
Loading

0 comments on commit e32d812

Please sign in to comment.