Skip to content

Commit

Permalink
Cosmetic code changes to the some shim modules
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Aug 1, 2023
1 parent aac2228 commit cd9a3ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions shims/deno/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ export default function test(testName, runtimeOptions, testContent) {
let context = new TestContext(testName, moduleContext);

return it(testName, { concurrency: true, ...targetRuntimeOptions }, async function () {
let result;
for (let module of context.module.moduleChain) {
for (let hook of module.beforeEachHooks) {
await hook.call(context, context.assert);
}
}

result = await targetTestContent.call(context, context.assert, { testName, options: runtimeOptions });
let result = await targetTestContent.call(context, context.assert, { testName, options: runtimeOptions });

await context.assert.waitForAsyncOps();

Expand Down
3 changes: 1 addition & 2 deletions shims/node/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ export default function test(testName, runtimeOptions, testContent) {
let context = new TestContext(testName, moduleContext);

return it(testName, { concurrency: true, ...targetRuntimeOptions }, async function () {
let result;
for (let module of context.module.moduleChain) {
for (let hook of module.beforeEachHooks) {
await hook.call(context, context.assert);
}
}

result = await targetTestContent.call(context, context.assert, { testName, options: runtimeOptions });
let result = await targetTestContent.call(context, context.assert, { testName, options: runtimeOptions });

await context.assert.waitForAsyncOps();

Expand Down
2 changes: 1 addition & 1 deletion shims/shared/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class Assert {
if (state !== false) {
throw new Assert.AssertionError({
actual: state,
expected: true,
expected: false,
message: message || `Expected argument to be false, it was: ${inspect(state)}`,
stackStartFn: this.false,
});
Expand Down

0 comments on commit cd9a3ea

Please sign in to comment.