Skip to content

Commit

Permalink
fix exec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jul 11, 2023
1 parent 4c76a8e commit b512fae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/test/gather/driver/execution-context-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const fetch = globalThis.__nativeFetch || globalThis.fetch;
return new Promise(function (resolve) {
return Promise.resolve()
.then(_ => (() => {
var __name=(fn)=>fn;
return (function main(value) {
return value;
})(1);
Expand Down Expand Up @@ -274,7 +274,7 @@ const fetch = globalThis.__nativeFetch || globalThis.fetch;

const code = mockFn.mock.calls[0][0];
expect(trimTrailingWhitespace(code)).toBe(`(() => {
var __name=(fn)=>fn;
return (function mainFn(value) {
return value;
})(1);
Expand All @@ -297,7 +297,7 @@ const fetch = globalThis.__nativeFetch || globalThis.fetch;

const code = mockFn.mock.calls[0][0];
expect(trimTrailingWhitespace(code)).toBe(`(() => {
var __name=(fn)=>fn;
return ((value) => {
return value;
})(1);
Expand Down Expand Up @@ -339,7 +339,8 @@ const fetch = globalThis.__nativeFetch || globalThis.fetch;

const code = mockFn.mock.calls[0][0];
expect(trimTrailingWhitespace(code)).toEqual(`(() => {
const abs = function abs(val) {
var __name=(fn)=>fn;
const abs = function abs(val) {
return Math.abs(val);
}
const square = function square(val) {
Expand Down

0 comments on commit b512fae

Please sign in to comment.