Skip to content

Commit 0061c24

Browse files
committed
tests and stuff
1 parent 74a2b8d commit 0061c24

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# .github/workflows/ci.yml
2+
name: CI
3+
4+
on:
5+
pull_request:
6+
push:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [16.x]
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- name: Run tests
30+
run: npm test

src/tests/translating_mc_json.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("translate", () => {
2727
exportType: "standard",
2828
optimise: true,
2929
});
30-
expect(JSON.parse(snbt)).toEqual(["", { text: "test", color: "#AA0000" }]);
30+
expect(JSON.parse(snbt)).toEqual(["", { text: "test", color: "dark_red" }]);
3131
});
3232

3333
const baseOptions: TranslateOptions = {

0 commit comments

Comments
 (0)