Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickey Burks committed May 8, 2019
1 parent 130dbe6 commit c17ab57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/assets/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/empty/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/noop-test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);

Expand Down

0 comments on commit c17ab57

Please sign in to comment.