Skip to content

Commit

Permalink
style: test linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bconnorwhite committed Oct 3, 2023
1 parent d2fe085 commit 35201ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/html/lists.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions test/html/q.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ describe("q", () => {
});
test("single line html", () => {
const text = <q html>Test</q>;
expect(text).toEqual('<q>Test</q>');
expect(text).toEqual("<q>Test</q>");
});
test("multi line html", () => {
const text = <q html>Test<br />Test<br />Test</q>;
expect(text).toEqual('<q>\n Test\n Test\n Test\n</q>');
expect(text).toEqual("<q>\n Test\n Test\n Test\n</q>");
});
});
8 changes: 4 additions & 4 deletions test/text/quotes.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("dq", () => {
});
test("no escape", () => {
const text = <dq noEscape>Te"st</dq>;
expect(text).toEqual('"Te\"st"');
expect(text).toEqual('"Te"st"');
});
test("multi line", () => {
const text = <dq>Test<br />Test<br />Test</dq>;
Expand All @@ -42,7 +42,7 @@ describe("bq", () => {
});
test("no escape", () => {
const text = <bq noEscape>Te`st</bq>;
expect(text).toEqual("`Te\`st`");
expect(text).toEqual("`Te`st`");
});
test("multi line", () => {
const text = <bq>Test<br />Test<br />Test</bq>;
Expand All @@ -55,13 +55,13 @@ describe("tq", () => {
const string = (
<tq noStartingNewline>Test</tq>
);
expect(string).toEqual('"""Test\n"""')
expect(string).toEqual('"""Test\n"""');
});
test("noEndingNewline", () => {
const string = (
<tq noEndingNewline>Test</tq>
);
expect(string).toEqual('"""\nTest"""')
expect(string).toEqual('"""\nTest"""');
});
});

Expand Down

0 comments on commit 35201ba

Please sign in to comment.