diff --git a/package.json b/package.json index 778b1a7..3450649 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "build": "bun build:source && bun build:types", "build:source": "swc source --config-file .swcrc --copy-files --delete-dir-on-start --out-dir .auto/build", "build:types": "tsc --emitDeclarationOnly --project source/tsconfig.json", - "lint": "eslint source", + "lint": "eslint source && eslint test", "test": "TZ=UTC NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest", "typecheck": "tsc --noEmit --project source/tsconfig.json", "watch:source": "swc source --config-file .swcrc --copy-files --out-dir .auto/build --watch", diff --git a/test/html/lists.test.tsx b/test/html/lists.test.tsx index f1bc905..4c65419 100644 --- a/test/html/lists.test.tsx +++ b/test/html/lists.test.tsx @@ -57,7 +57,7 @@ test("cl", () => { items={[ "one", { content: "two", checked: true }, - { content: "three", checked: false }, + { content: "three", checked: false } ]} /> ); expect(text).toEqual("- [ ] one\n- [x] two\n- [ ] three"); diff --git a/test/html/q.test.tsx b/test/html/q.test.tsx index d48ba20..903fcef 100644 --- a/test/html/q.test.tsx +++ b/test/html/q.test.tsx @@ -28,10 +28,10 @@ describe("q", () => { }); test("single line html", () => { const text = Test; - expect(text).toEqual('Test'); + expect(text).toEqual("Test"); }); test("multi line html", () => { const text = Test
Test
Test
; - expect(text).toEqual('\n Test\n Test\n Test\n'); + expect(text).toEqual("\n Test\n Test\n Test\n"); }); }); diff --git a/test/text/quotes.test.tsx b/test/text/quotes.test.tsx index 4c9f4de..198996d 100644 --- a/test/text/quotes.test.tsx +++ b/test/text/quotes.test.tsx @@ -23,7 +23,7 @@ describe("dq", () => { }); test("no escape", () => { const text = Te"st; - expect(text).toEqual('"Te\"st"'); + expect(text).toEqual('"Te"st"'); }); test("multi line", () => { const text = Test
Test
Test
; @@ -42,7 +42,7 @@ describe("bq", () => { }); test("no escape", () => { const text = Te`st; - expect(text).toEqual("`Te\`st`"); + expect(text).toEqual("`Te`st`"); }); test("multi line", () => { const text = Test
Test
Test
; @@ -55,13 +55,13 @@ describe("tq", () => { const string = ( Test ); - expect(string).toEqual('"""Test\n"""') + expect(string).toEqual('"""Test\n"""'); }); test("noEndingNewline", () => { const string = ( Test ); - expect(string).toEqual('"""\nTest"""') + expect(string).toEqual('"""\nTest"""'); }); });