Skip to content

Commit

Permalink
tests: remove math test cases (support disabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Feb 28, 2022
1 parent d86fd9e commit 8e53ead
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
22 changes: 3 additions & 19 deletions markdown/format.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { fail } from "testing/asserts.ts";
import { diff } from "../lib/diff.ts";
import { getLogger } from "log/mod.ts";

import { diff } from "../lib/diff.ts";
import format from "./format.ts";

/**
Expand All @@ -20,15 +21,6 @@ with a [a link](https://bobheadxi.dev) and **emphasis [bold link](https://github
and a ![cute image](https://bobheadxi.dev/assets/images/profile.jpg).
and this is another paragraph!
## Math
Lift($L$) can be determined by Lift Coefficient ($C_L$) like the following
equation.
$$
L = \frac{1}{2} \rho v^2 S C_L
$$
`;
const want = `---
field: wow
Expand All @@ -40,21 +32,13 @@ hello world! this is a document.
with a [a link](https://bobheadxi.dev) and **emphasis [bold link](https://github.com/bobheadxi)** and *italics* and ~~strike~~ and a ![cute image](https://bobheadxi.dev/assets/images/profile.jpg).
and this is another paragraph!
## Math
Lift($L$) can be determined by Lift Coefficient ($C_L$) like the following equation.
$$
L = \frac{1}{2} \rho v^2 S C_L
$$
`;

Deno.test({
name: testSuite,
fn: () => {
const got = format(input);
if (diff(want, got)) {
if (diff(want, got, { log: getLogger() })) {
fail("Unexpected diff");
}
},
Expand Down
3 changes: 2 additions & 1 deletion plugins/readable/reflow.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { fail } from "testing/asserts.ts";
import { getLogger } from "log/mod.ts";

import format from "../../markdown/format.ts";
import remark from "../../lib/remark.ts";
Expand All @@ -14,7 +15,7 @@ import { lorenIpsumLines, lorenIpsumText, TestSuite } from "../../lib/test.ts";
"plugins/readable/reflow:e2e",
(testCase) => {
const got = format(testCase.input, testRemark);
if (diff(testCase.expect, got)) {
if (diff(testCase.expect, got, { log: getLogger() })) {
fail("Unexpected diff");
}
},
Expand Down

0 comments on commit 8e53ead

Please sign in to comment.