diff --git a/test/e2e/assets/test.js b/test/e2e/assets/test.js index 46c2faf6..87f5b6e7 100644 --- a/test/e2e/assets/test.js +++ b/test/e2e/assets/test.js @@ -68,7 +68,7 @@ test('`fusion dev` works with assets', async () => { const clientMain = await request(`${url}/_static/client-main.js`); t.ok(clientMain, 'serves client-main from memory correctly'); t.ok( - clientMain.includes('"src", "src/main.js")'), + clientMain.includes('"src","src/main.js")'), 'transpiles __dirname and __filename' ); t.ok( diff --git a/test/e2e/empty/test.js b/test/e2e/empty/test.js index 957cec72..b3e0a6ff 100644 --- a/test/e2e/empty/test.js +++ b/test/e2e/empty/test.js @@ -26,7 +26,7 @@ test('generates error if missing default export', async () => { // $FlowFixMe t.fail('did not error'); } catch (e) { - t.ok(e.stderr.includes('initialize is not a function')); + t.ok(e.stderr.includes(' is not a function')); } finally { proc.kill(); } diff --git a/test/e2e/noop-test/test.js b/test/e2e/noop-test/test.js index af7a773c..bdb42aed 100644 --- a/test/e2e/noop-test/test.js +++ b/test/e2e/noop-test/test.js @@ -31,11 +31,11 @@ test('development env globals', async () => { const clientContent = await readFile(clientEntryPath, 'utf8'); t.ok( - clientContent.includes(`'main __BROWSER__ is', true`), + clientContent.includes(`"main __BROWSER__ is",!0`), `__BROWSER__ is transpiled to be true in development` ); t.ok( - clientContent.includes(`'main __NODE__ is', false`), + clientContent.includes(`"main __NODE__ is",!1`), '__NODE__ is transpiled to be false' );