Skip to content

Commit efbeccd

Browse files
committed
Testing with GitHub actions
1 parent 9a41e3d commit efbeccd

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Rust stable
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
- name: Use Node.js LTS
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: lts/*
24+
- name: Install wasm-pack
25+
run: cargo install --git https://github.com/mrbbot/wasm-pack
26+
- run: npm ci
27+
- run: npm run build
28+
- run: npm test

test/selectors.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ const selectorMacro: Macro<
1313
.transform(input);
1414
t.is(res, expected);
1515
};
16-
selectorMacro.title = (providedTitle) =>
17-
`testhandles ${providedTitle} selector`;
16+
selectorMacro.title = (providedTitle) => `handles ${providedTitle} selector`;
1817

1918
test("*", selectorMacro, "*", "<h1>1</h1><p>2</p>", "<h1>new</h1><p>new</p>");
2019
test("E", selectorMacro, "p", "<h1>1</h1><p>2</p>", "<h1>1</h1><p>new</p>");

0 commit comments

Comments
 (0)