Skip to content

Commit

Permalink
Changing line break to \n instead of os version
Browse files Browse the repository at this point in the history
  • Loading branch information
landonxjames committed Nov 20, 2023
1 parent 7798aa4 commit 316a45d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ export async function cliTest (fixtures) {
const { stderr, stdout } = await exec(jcoPath, 'transpile', `test/fixtures/components/${name}.component.wasm`, '--no-namespaced-exports', '--no-wasi-shim', '--name', name, '-o', outDir);
strictEqual(stderr, '');
const source = await readFile(`${outDir}/${name}.js`);
const finalLine = source.toString().split(EOL).at(-1)
const allLines = source.toString().split(EOL)
const finalLine = source.toString().split("\n").at(-1)
console.log("FINAL LINE:", finalLine)
console.log("ALL LINES:", allLines)
//Check final line is the export statement
ok(finalLine.toString().includes("export {"));
//Check that it does not contain the namespaced export
Expand Down

0 comments on commit 316a45d

Please sign in to comment.