-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb948ed
commit 346da7f
Showing
5 changed files
with
4,407 additions
and
1,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { HorizontalRuleExtension } from "../../src/syntax-extensions/HorizontalRuleExtension"; | ||
|
||
test("HorizontalRuleExtension handles the correct unist node", () => { | ||
const extension = new HorizontalRuleExtension(); | ||
expect(extension.unistNodeName()).toBe("thematicBreak"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"src/**/*", | ||
"!src/index.ts" | ||
], | ||
"coverageDirectory": "coverage", | ||
"coverageProvider": "babel", | ||
"testMatch": ["<rootDir>/__tests__/**/*.test.ts"], | ||
"transform": { | ||
"^.+\\.(j|t)s$": [ | ||
"ts-jest", | ||
{ | ||
"tsconfig": "test.tsconfig.json" | ||
} | ||
] | ||
}, | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!prosemirror-unified)/" | ||
], | ||
"moduleNameMapper": { | ||
"prosemirror-unified": "<rootDir>/node_modules/prosemirror-unified/dist/prosemirror-unified.js" | ||
}, | ||
"resetMocks": true | ||
} |
Oops, something went wrong.