Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Add tests for the javascript program #20

Merged
merged 8 commits into from Aug 2, 2019
Merged

Add tests for the javascript program #20

merged 8 commits into from Aug 2, 2019

Conversation

chee
Copy link
Member

@chee chee commented Jul 30, 2019

some tests have arrived.
some snapshots too.

still more to do, needs a set of o-test-component snapshots.

@@ -86,3 +86,5 @@ describe("rewrite", () => {
expect(rewrite("../../src/lol", aliases)).toBe("../../dist/lol")
})
})

export default {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come the test files have this empty export default?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they have this because the vscode plugin for running Mocha tests gets real confused if it is using -r esm and the test has no default export.

test/lib/npm.js Outdated Show resolved Hide resolved
test/lib/npm.js Outdated Show resolved Hide resolved
test/lib/npm.js Outdated Show resolved Hide resolved
Improve wording of merge test
test/lib/npm.js Outdated Show resolved Hide resolved
Missing quote 🙈

Co-Authored-By: Jake Champion <jakechampion.jake2@googlemail.com>
test/lib/npm.js Outdated Show resolved Hide resolved
@chee
Copy link
Member Author

chee commented Aug 2, 2019

Thanks, @JakeChampion !!

@chee chee merged commit ebf62be into live Aug 2, 2019
@chee chee deleted the yeet branch August 2, 2019 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants