Skip to content

Commit

Permalink
fix wasm test
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Aug 12, 2022
1 parent 6b1d609 commit 5eb36c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Binary file modified packages/compiler/deno/astro.wasm
Binary file not shown.
14 changes: 7 additions & 7 deletions packages/compiler/test/basic/component-metadata/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ test('Hydrated components: default export', () => {
let components = result.hydratedComponents;
assert.equal(components[0].exportName, 'default');
assert.equal(components[0].specifier, '../components/one.jsx');
assert.equal(components[0].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/one.jsx');
assert.equal(components[0].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/one');
});

test('Hydrated components: star export', () => {
let components = result.hydratedComponents;
assert.equal(components[1].exportName, 'someName');
assert.equal(components[1].specifier, '../components/two.jsx');
assert.equal(components[1].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/two.jsx');
assert.equal(components[1].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/two');
});

test('Hydrated components: named export', () => {
Expand All @@ -65,7 +65,7 @@ test('Hydrated components: deep nested export', () => {
let components = result.hydratedComponents;
assert.equal(components[3].exportName, 'nested.deep.Component');
assert.equal(components[3].specifier, '../components/four.jsx');
assert.equal(components[3].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/four.jsx');
assert.equal(components[3].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/four');
});

test('ClientOnly component', () => {
Expand All @@ -77,28 +77,28 @@ test('ClientOnly components: star export', () => {
let components = result.clientOnlyComponents;
assert.equal(components[0].exportName, 'someName');
assert.equal(components[0].specifier, '../components/five.jsx');
assert.equal(components[0].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/five.jsx');
assert.equal(components[0].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/five');
});

test('ClientOnly components: named export', () => {
let components = result.clientOnlyComponents;
assert.equal(components[1].exportName, 'Six');
assert.equal(components[1].specifier, '../components/six.jsx');
assert.equal(components[1].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/six.jsx');
assert.equal(components[1].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/six');
});

test('ClientOnly components: default export', () => {
let components = result.clientOnlyComponents;
assert.equal(components[2].exportName, 'default');
assert.equal(components[2].specifier, '../components/seven.jsx');
assert.equal(components[2].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/seven.jsx');
assert.equal(components[2].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/seven');
});

test('ClientOnly components: deep nested export', () => {
let components = result.clientOnlyComponents;
assert.equal(components[3].exportName, 'nested.deep.Component');
assert.equal(components[3].specifier, '../components/eight.jsx');
assert.equal(components[3].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/eight.jsx');
assert.equal(components[3].resolvedPath, '/@fs/users/astro/apps/pacman/src/components/eight');
});

test.run();

0 comments on commit 5eb36c5

Please sign in to comment.