-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support {S#|P#} syntax for linking to traits
fixes #66
- Loading branch information
1 parent
78ab5bf
commit 10af884
Showing
5 changed files
with
54 additions
and
3 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,17 @@ | ||
import { deduce, setup } from '../support' | ||
|
||
beforeEach(setup) | ||
|
||
it('renders internal links', () => { | ||
cy.visit('dev/preview') | ||
deduce() | ||
|
||
cy.get('[data-testid=input]').type( | ||
// {{} is Cypress escaping for {. See https://docs.cypress.io/api/commands/type#Arguments | ||
`{{}S000001} is {{}P000001} as noted in {{}S000001|P000001}`, | ||
) | ||
|
||
cy.get('[data-testid=output]').contains( | ||
'Discrete topology on a two-point set is $T_0$ as noted in Discrete topology on a two-point set | $T_0$', | ||
) | ||
}) |
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
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
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
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