Skip to content

Commit 3cfd2fe

Browse files
Made CI test the WebAssembly bindings
1 parent 5275141 commit 3cfd2fe

File tree

4 files changed

+25
-289
lines changed

4 files changed

+25
-289
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ matrix:
2525
- RUSTDOCFLAGS="--cfg docsrs"
2626
rust: nightly
2727

28+
# the webassembly bindings
29+
- script:
30+
- cd wasm && yarn install
31+
- yarn test
32+
2833
before_script:
2934
- |
3035
if [ ! -z "$TARGET" ]; then

wasm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@michael-f-bryan/gcode",
3-
"version": "1.0.0",
3+
"version": "0.6.1",
44
"description": "An interface to the Rust gcode parser library",
55
"main": "main/index.js",
66
"types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
1313
"prepublish": "tsc"
1414
},
1515
"dependencies": {
16-
"@michael-f-bryan/gcode-wasm": "0.1.0"
16+
"@michael-f-bryan/gcode-wasm": "0.6.1"
1717
},
1818
"devDependencies": {
1919
"@babel/parser": "^7.8.7",

wasm/ts/index.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("gcode parsing", () => {
1010
arguments: {},
1111
span: {
1212
start: 0,
13-
end: 2,
13+
end: src.length,
1414
line: 0,
1515
}
1616
},
@@ -40,7 +40,6 @@ describe("gcode parsing", () => {
4040
];
4141

4242
const got = Array.from(parse(src));
43-
console.log(got);
4443

4544
expect(got).toEqual(expected);
4645
});

0 commit comments

Comments
 (0)