Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77d2a9c

Browse files
committed
add failing hint tests to fix later
1 parentc9f4d4a commit77d2a9c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

‎test/hint.spec.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,40 @@ describe('@hint', () => {
9999
});
100100
});
101101

102+
it('should work with a second opening bracket',()=>{
103+
constlines=['+ Task One','',"@hint('an example with a bracket ( in the middle')"];
104+
constnext=task({result:result(), lines,index:index()});
105+
constnextTask=next.pages[0].tasks[0];
106+
expect(nextTask).to.deep.equal({
107+
hints:[
108+
'an example with a bracket ( in the middle'
109+
],
110+
description:'Task One\n'
111+
});
112+
});
113+
114+
it('should work with a curly bracket',()=>{
115+
constlines=['+ Task One','',"@hint('an example with a bracket { in the middle')"];
116+
constnext=task({result:result(), lines,index:index()});
117+
constnextTask=next.pages[0].tasks[0];
118+
expect(nextTask).to.deep.equal({
119+
hints:[
120+
'an example with a bracket { in the middle'
121+
],
122+
description:'Task One\n'
123+
});
124+
});
125+
126+
it('should work with a closing bracket',()=>{
127+
constlines=['+ Task One','',"@hint('an example with a bracket ) in the middle')"];
128+
constnext=task({result:result(), lines,index:index()});
129+
constnextTask=next.pages[0].tasks[0];
130+
expect(nextTask).to.deep.equal({
131+
hints:[
132+
'an example with a bracket ) in the middle'
133+
],
134+
description:'Task One\n'
135+
});
136+
});
137+
102138
});//@hint

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp