Skip to content

Commit 3f320f4

Browse files
committed
resolved conflict
2 parents 433ee9e + fc08d2f commit 3f320f4

14 files changed

+273
-169
lines changed
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Markdown.render() should render PlantUML Ditaa correctly 1`] = `
4+
"<img src=\\"http://www.plantuml.com/plantuml/png/SoWkIImgISaiIKpaqjQ50cq51GLj93Q2mrMZ00NQO3cmHX3RJW4cKmDI4v9QKQ805a8nfyObCp6zA34NgCObFxiqDpMl1AIcHj4tCJqpLH5i18evG52TKbk3B8og1kmC0cvMKB1Im0NYkA2ckMRcANWabgQbvYau5YMbPfP0p4UOWmcqkHnIyrB0GG00\\" alt=\\"uml diagram\\" />
5+
"
6+
`;
7+
8+
exports[`Markdown.render() should render PlantUML Gantt correctly 1`] = `
9+
"<img src=\\"http://www.plantuml.com/plantuml/svg/SoWkIImgIK_CAodXYWueoY_9BwaiI5L8IItEJC-BLSX9B2ufLZ0qLKX9h2pcYWv9BIvHA82fWaiRu906crsia5YYW6cqUh52QbuAbmEG0DiE0000\\" alt=\\"uml diagram\\" />
10+
"
11+
`;
12+
13+
exports[`Markdown.render() should render PlantUML MindMaps correctly 1`] = `
14+
"<img src=\\"http://www.plantuml.com/plantuml/svg/JOzD3e8m44Rtd6BMtNW192IM5I29HEDsAbKdeLD2MvNRIsjCMCsRlFd9LpgFipV4Wy4f4o2r8kHC23Yhm3wi9A0X3XzeYNrgwx1H6wvb1KTjqtRJoYhMtexBSAqJUescwoEUq4tn3xp9Fm7XfUS5HiiFO3Gw7SjT4QUCkkKxLy2-WAvl3rkrtEclBdOCXcnMwZN7ByiN\\" alt=\\"uml diagram\\" />
15+
"
16+
`;
17+
18+
exports[`Markdown.render() should render PlantUML Umls correctly 1`] = `
19+
"<img src=\\"http://www.plantuml.com/plantuml/svg/LOzD2eCm44RtESMtj0jx01V5E_G4Gvngo2_912gbTsz4LBfylCV7p5Y4ibJlbEENG2AocHV1P39hCJ6eOar8bCaZaROqyrDMnzWqXTcn8YqnGzSYqNC-q76sweoW5zOsLi57uMpHz-WESslY0jmVw1AjdaE30IPeLoVUceLTslrL3-2tS9ZA_qZRtm_vgh7PzkOF\\" alt=\\"uml diagram\\" />
20+
"
21+
`;
22+
23+
exports[`Markdown.render() should render PlantUML WBS correctly 1`] = `
24+
"<img src=\\"http://www.plantuml.com/plantuml/svg/ZP2_JiD03CRtFeNdRF04fR140gdGeREv-z8plVYYimFYxSabKbaxsR9-ylTdRyxLVpvjrz5XDb6OqR6MqEPRYSXPz4BdmsdNTVJAiuP4da1JBLy8lbmxUYxZbE6Wa_CLgUI8IXymS0rf9NeL5yxKDt24EhiKfMDcRNzVO79HcX8RLdvLfZBGa_KtFx2RKcpK7TZ3dTpZfWgskMAZ9jIXr94rW4PubM1RbBZOb-6NtcS9LpgBjlj_1w9QldbPjZHxQ5pg_GC0\\" alt=\\"uml diagram\\" />
25+
"
26+
`;
27+
28+
exports[`Markdown.render() should render footnote correctly 1`] = `
29+
"<p data-line=\\"1\\"><sup class=\\"footnote-ref\\"><a href=\\"#fn1\\" id=\\"fnref1\\">[1]</a></sup><br />
30+
hello-world: <a href=\\"https://github.com/BoostIO/Boostnote/\\">https://github.com/BoostIO/Boostnote/</a></p>
31+
<hr class=\\"footnotes-sep\\" />
32+
<section class=\\"footnotes\\">
33+
<ol class=\\"footnotes-list\\">
34+
<li id=\\"fn1\\" class=\\"footnote-item\\"><p>hello-world <a href=\\"#fnref1\\" class=\\"footnote-backref\\">↩︎</a></p>
35+
</li>
36+
</ol>
37+
</section>
38+
"
39+
`;
40+
41+
exports[`Markdown.render() should render line breaks correctly 1`] = `
42+
"<p data-line=\\"0\\">This is the first line.<br />
43+
This is the second line.</p>
44+
"
45+
`;
46+
47+
exports[`Markdown.render() should render line breaks correctly 2`] = `
48+
"<p data-line=\\"0\\">This is the first line.
49+
This is the second line.</p>
50+
"
51+
`;
52+
53+
exports[`Markdown.render() should render shortcuts correctly 1`] = `
54+
"<p data-line=\\"0\\"><kbd>Ctrl</kbd></p>
55+
<p data-line=\\"2\\"><kbd>Ctrl</kbd></p>
56+
"
57+
`;
58+
59+
exports[`Markdown.render() should renders KaTeX correctly 1`] = `
60+
"<span class=\\"katex-display\\"><span class=\\"katex\\"><span class=\\"katex-mathml\\"><math><semantics><mrow><mi>c</mi><mo>=</mo><mi>p</mi><mi>m</mi><mi>s</mi><mi>q</mi><mi>r</mi><mi>t</mi><mrow><msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><msup><mi>b</mi><mn>2</mn></msup></mrow></mrow><annotation encoding=\\"application/x-tex\\">c = pmsqrt{a^2 + b^2}</annotation></semantics></math></span><span class=\\"katex-html\\" aria-hidden=\\"true\\"><span class=\\"base\\"><span class=\\"strut\\" style=\\"height:0.43056em;vertical-align:0em;\\"></span><span class=\\"mord mathdefault\\">c</span><span class=\\"mspace\\" style=\\"margin-right:0.2777777777777778em;\\"></span><span class=\\"mrel\\">=</span><span class=\\"mspace\\" style=\\"margin-right:0.2777777777777778em;\\"></span></span><span class=\\"base\\"><span class=\\"strut\\" style=\\"height:1.0585479999999998em;vertical-align:-0.19444em;\\"></span><span class=\\"mord mathdefault\\">p</span><span class=\\"mord mathdefault\\">m</span><span class=\\"mord mathdefault\\">s</span><span class=\\"mord mathdefault\\" style=\\"margin-right:0.03588em;\\">q</span><span class=\\"mord mathdefault\\" style=\\"margin-right:0.02778em;\\">r</span><span class=\\"mord mathdefault\\">t</span><span class=\\"mord\\"><span class=\\"mord\\"><span class=\\"mord mathdefault\\">a</span><span class=\\"msupsub\\"><span class=\\"vlist-t\\"><span class=\\"vlist-r\\"><span class=\\"vlist\\" style=\\"height:0.8641079999999999em;\\"><span style=\\"top:-3.113em;margin-right:0.05em;\\"><span class=\\"pstrut\\" style=\\"height:2.7em;\\"></span><span class=\\"sizing reset-size6 size3 mtight\\"><span class=\\"mord mtight\\">2</span></span></span></span></span></span></span></span><span class=\\"mspace\\" style=\\"margin-right:0.2222222222222222em;\\"></span><span class=\\"mbin\\">+</span><span class=\\"mspace\\" style=\\"margin-right:0.2222222222222222em;\\"></span><span class=\\"mord\\"><span class=\\"mord mathdefault\\">b</span><span class=\\"msupsub\\"><span class=\\"vlist-t\\"><span class=\\"vlist-r\\"><span class=\\"vlist\\" style=\\"height:0.8641079999999999em;\\"><span style=\\"top:-3.113em;margin-right:0.05em;\\"><span class=\\"pstrut\\" style=\\"height:2.7em;\\"></span><span class=\\"sizing reset-size6 size3 mtight\\"><span class=\\"mord mtight\\">2</span></span></span></span></span></span></span></span></span></span></span></span></span>
61+
"
62+
`;
63+
64+
exports[`Markdown.render() should renders abbrevations correctly 1`] = `
65+
"<h2 id=\\"abbr\\" data-line=\\"1\\">abbr</h2>
66+
<p data-line=\\"3\\">The <abbr title=\\"Hyper Text Markup Language\\">HTML</abbr> specification<br />
67+
is maintained by the <abbr title=\\"World Wide Web Consortium\\">W3C</abbr>.</p>
68+
"
69+
`;
70+
71+
exports[`Markdown.render() should renders checkboxes 1`] = `
72+
"<ul>
73+
<li class=\\"taskListItem\\" data-line=\\"1\\"><input type=\\"checkbox\\" id=\\"checkbox-2\\" /> Unchecked</li>
74+
<li class=\\"taskListItem checked\\" data-line=\\"2\\"><input type=\\"checkbox\\" checked id=\\"checkbox-3\\" /> Checked</li>
75+
</ul>
76+
"
77+
`;
78+
79+
exports[`Markdown.render() should renders codeblock correctly 1`] = `
80+
"<pre class=\\"code CodeMirror\\" data-line=\\"1\\">
81+
<span class=\\"filename\\">filename.js</span>
82+
<span class=\\"lineNumber CodeMirror-gutters\\"><span class=\\"CodeMirror-linenumber\\">2</span></span>
83+
<code class=\\"js\\">var project = 'boostnote';
84+
</code>
85+
</pre>"
86+
`;
87+
88+
exports[`Markdown.render() should renders definition lists correctly 1`] = `
89+
"<h2 id=\\"definition-list\\" data-line=\\"1\\">definition list</h2>
90+
<h3 id=\\"list-1\\" data-line=\\"3\\">list 1</h3>
91+
<dl>
92+
<dt data-line=\\"5\\">Term 1</dt>
93+
<dd data-line=\\"6\\">Definition 1</dd>
94+
<dt data-line=\\"8\\">Term 2</dt>
95+
<dd data-line=\\"9\\">Definition 2a</dd>
96+
<dd data-line=\\"10\\">Definition 2b</dd>
97+
</dl>
98+
<p data-line=\\"12\\">Term 3<br />
99+
~</p>
100+
<h3 id=\\"list-2\\" data-line=\\"16\\">list 2</h3>
101+
<dl>
102+
<dt data-line=\\"18\\">Term 1</dt>
103+
<dd data-line=\\"20\\">
104+
<p data-line=\\"20\\">Definition 1</p>
105+
</dd>
106+
<dt data-line=\\"22\\">Term 2 with <em>inline markup</em></dt>
107+
<dd data-line=\\"24\\">
108+
<p data-line=\\"24\\">Definition 2</p>
109+
<pre><code> { some code, part of Definition 2 }
110+
</code></pre>
111+
<p data-line=\\"28\\">Third paragraph of definition 2.</p>
112+
</dd>
113+
</dl>
114+
"
115+
`;
116+
117+
exports[`Markdown.render() should renders markdown correctly 1`] = `
118+
"<h1 id=\\"Welcome-to-Boostnote\\" data-line=\\"1\\">Welcome to Boostnote!</h1>
119+
<h2 id=\\"Click-here-to-edit-markdown\\" data-line=\\"2\\">Click here to edit markdown 👋</h2>
120+
<iframe width=\\"560\\" height=\\"315\\" src=\\"https://www.youtube.com/embed/L0qNPLsvmyM\\" frameborder=\\"0\\" allowfullscreen></iframe>
121+
<h2 id=\\"Docs\\" data-line=\\"6\\">Docs 📝</h2>
122+
<ul>
123+
<li data-line=\\"7\\"><a href=\\"https://hackernoon.com/boostnote-boost-your-happiness-productivity-and-creativity-315034efeebe\\">Boostnote | Boost your happiness, productivity and creativity.</a></li>
124+
<li data-line=\\"8\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Cloud-Syncing-and-Backup\\">Cloud Syncing &amp; Backups</a></li>
125+
<li data-line=\\"9\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Sync-Data-Across-Desktop-and-Mobile-apps\\">How to sync your data across Desktop and Mobile apps</a></li>
126+
<li data-line=\\"10\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Evernote\\">Convert data from <strong>Evernote</strong> to Boostnote.</a></li>
127+
<li data-line=\\"11\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Keyboard-Shortcuts\\">Keyboard Shortcuts</a></li>
128+
<li data-line=\\"12\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Keymaps-in-Editor-mode\\">Keymaps in Editor mode</a></li>
129+
<li data-line=\\"13\\"><a href=\\"https://github.com/BoostIO/Boostnote/wiki/Syntax-Highlighting\\">How to set syntax highlight in Snippet note</a></li>
130+
</ul>
131+
<hr />
132+
<h2 id=\\"Article-Archive\\" data-line=\\"17\\">Article Archive 📚</h2>
133+
<ul>
134+
<li data-line=\\"18\\"><a href=\\"http://bit.ly/2mOJPu7\\">Reddit English</a></li>
135+
<li data-line=\\"19\\"><a href=\\"https://www.reddit.com/r/boostnote_es/\\">Reddit Spanish</a></li>
136+
<li data-line=\\"20\\"><a href=\\"https://www.reddit.com/r/boostnote_cn/\\">Reddit Chinese</a></li>
137+
<li data-line=\\"21\\"><a href=\\"https://www.reddit.com/r/boostnote_jp/\\">Reddit Japanese</a></li>
138+
</ul>
139+
<hr />
140+
<h2 id=\\"Community\\" data-line=\\"25\\">Community 🍻</h2>
141+
<ul>
142+
<li data-line=\\"26\\"><a href=\\"http://bit.ly/2AWWzkD\\">GitHub</a></li>
143+
<li data-line=\\"27\\"><a href=\\"http://bit.ly/2z8BUJZ\\">Twitter</a></li>
144+
<li data-line=\\"28\\"><a href=\\"http://bit.ly/2jcca8t\\">Facebook Group</a></li>
145+
</ul>
146+
"
147+
`;
148+
149+
exports[`Markdown.render() should renders sub correctly 1`] = `
150+
"<h2 id=\\"sub\\" data-line=\\"1\\">sub</h2>
151+
<p data-line=\\"3\\">H<sub>2</sub>0</p>
152+
"
153+
`;
154+
155+
exports[`Markdown.render() should renders sup correctly 1`] = `
156+
"<h2 id=\\"sup\\" data-line=\\"1\\">sup</h2>
157+
<p data-line=\\"3\\">29<sup>th</sup></p>
158+
"
159+
`;
160+
161+
exports[`Markdown.render() should text with quotes correctly 1`] = `
162+
"<p data-line=\\"0\\">This is a “QUOTE”.</p>
163+
"
164+
`;
165+
166+
exports[`Markdown.render() should text with quotes correctly 2`] = `
167+
"<p data-line=\\"0\\">This is a &quot;QUOTE&quot;.</p>
168+
"
169+
`;
Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
const { escapeHtmlCharacters } = require('browser/lib/utils')
2-
const test = require('ava')
32

4-
test('escapeHtmlCharacters should return the original string if nothing needed to escape', t => {
3+
test('escapeHtmlCharacters should return the original string if nothing needed to escape', () => {
54
const input = 'Nothing to be escaped'
65
const expected = 'Nothing to be escaped'
76
const actual = escapeHtmlCharacters(input)
8-
t.is(actual, expected)
7+
expect(actual).toBe(expected)
98
})
109

11-
test('escapeHtmlCharacters should skip code block if that option is enabled', t => {
10+
test('escapeHtmlCharacters should skip code block if that option is enabled', () => {
1211
const input = ` <no escape>
1312
<escapeMe>`
1413
const expected = ` <no escape>
1514
&lt;escapeMe&gt;`
1615
const actual = escapeHtmlCharacters(input, { detectCodeBlock: true })
17-
t.is(actual, expected)
16+
expect(actual).toBe(expected)
1817
})
1918

20-
test('escapeHtmlCharacters should NOT skip character not in code block but start with 4 spaces', t => {
19+
test('escapeHtmlCharacters should NOT skip character not in code block but start with 4 spaces', () => {
2120
const input = '4 spaces &'
2221
const expected = '4 spaces &amp;'
2322
const actual = escapeHtmlCharacters(input, { detectCodeBlock: true })
24-
t.is(actual, expected)
23+
expect(actual).toBe(expected)
2524
})
2625

27-
test('escapeHtmlCharacters should NOT skip code block if that option is NOT enabled', t => {
26+
test('escapeHtmlCharacters should NOT skip code block if that option is NOT enabled', () => {
2827
const input = ` <no escape>
2928
<escapeMe>`
3029
const expected = ` &lt;no escape&gt;
3130
&lt;escapeMe&gt;`
3231
const actual = escapeHtmlCharacters(input)
33-
t.is(actual, expected)
32+
expect(actual).toBe(expected)
3433
})
3534

36-
test("escapeHtmlCharacters should NOT escape & character if it's a part of an escaped character", t => {
35+
test("escapeHtmlCharacters should NOT escape & character if it's a part of an escaped character", () => {
3736
const input = 'Do not escape &amp; or &quot; but do escape &'
3837
const expected = 'Do not escape &amp; or &quot; but do escape &amp;'
3938
const actual = escapeHtmlCharacters(input)
40-
t.is(actual, expected)
39+
expect(actual).toBe(expected)
4140
})
4241

43-
test('escapeHtmlCharacters should skip char if in code block', t => {
42+
test('escapeHtmlCharacters should skip char if in code block', () => {
4443
const input = `
4544
\`\`\`
4645
<dontescapeme>
@@ -62,12 +61,12 @@ dasdasdasd
6261
\`\`\`
6362
`
6463
const actual = escapeHtmlCharacters(input, { detectCodeBlock: true })
65-
t.is(actual, expected)
64+
expect(actual).toBe(expected)
6665
})
6766

68-
test('escapeHtmlCharacters should return the correct result', t => {
67+
test('escapeHtmlCharacters should return the correct result', () => {
6968
const input = '& < > " \''
7069
const expected = '&amp; &lt; &gt; &quot; &#39;'
7170
const actual = escapeHtmlCharacters(input)
72-
t.is(actual, expected)
71+
expect(actual).toBe(expected)
7372
})

tests/lib/find-storage-test.js renamed to tests/lib/find-storage.test.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const test = require('ava')
21
const { findStorage } = require('browser/lib/findStorage')
32

43
global.document = require('jsdom').jsdom('<body></body>')
@@ -16,20 +15,22 @@ const sander = require('sander')
1615
const os = require('os')
1716
const storagePath = path.join(os.tmpdir(), 'test/find-storage')
1817

19-
test.beforeEach(t => {
20-
t.context.storage = TestDummy.dummyStorage(storagePath)
21-
localStorage.setItem('storages', JSON.stringify([t.context.storage.cache]))
18+
let storageContext
19+
20+
beforeEach(() => {
21+
storageContext = TestDummy.dummyStorage(storagePath)
22+
localStorage.setItem('storages', JSON.stringify([storageContext.cache]))
2223
})
2324

2425
// Unit test
25-
test('findStorage() should return a correct storage path(string)', t => {
26-
const storageKey = t.context.storage.cache.key
26+
test('findStorage() should return a correct storage path(string)', () => {
27+
const storageKey = storageContext.cache.key
2728

28-
t.is(findStorage(storageKey).key, storageKey)
29-
t.is(findStorage(storageKey).path, storagePath)
29+
expect(findStorage(storageKey).key).toBe(storageKey)
30+
expect(findStorage(storageKey).path).toBe(storagePath)
3031
})
3132

32-
test.after(function after() {
33+
afterAll(function after() {
3334
localStorage.clear()
3435
sander.rimrafSync(storagePath)
3536
})

tests/lib/find-title-test.js renamed to tests/lib/find-title.test.js

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
* @fileoverview Unit test for browser/lib/findTitle
33
*/
44

5-
const test = require('ava')
65
const { findNoteTitle } = require('browser/lib/findNoteTitle')
76

87
// Unit test
9-
test('findNoteTitle#find should return a correct title (string)', t => {
8+
test('findNoteTitle#find should return a correct title (string)', () => {
109
// [input, expected]
1110
const testCases = [
1211
['# hoge\nfuga', '# hoge'],
@@ -20,15 +19,11 @@ test('findNoteTitle#find should return a correct title (string)', t => {
2019

2120
testCases.forEach(testCase => {
2221
const [input, expected] = testCase
23-
t.is(
24-
findNoteTitle(input, false),
25-
expected,
26-
`Test for find() input: ${input} expected: ${expected}`
27-
)
22+
expect(findNoteTitle(input, false)).toBe(expected)
2823
})
2924
})
3025

31-
test('findNoteTitle#find should ignore front matter when enableFrontMatterTitle=false', t => {
26+
test('findNoteTitle#find should ignore front matter when enableFrontMatterTitle=false', () => {
3227
// [input, expected]
3328
const testCases = [
3429
['---\nlayout: test\ntitle: hoge hoge hoge \n---\n# fuga', '# fuga'],
@@ -38,15 +33,11 @@ test('findNoteTitle#find should ignore front matter when enableFrontMatterTitle
3833

3934
testCases.forEach(testCase => {
4035
const [input, expected] = testCase
41-
t.is(
42-
findNoteTitle(input, false),
43-
expected,
44-
`Test for find() input: ${input} expected: ${expected}`
45-
)
36+
expect(findNoteTitle(input, false)).toBe(expected)
4637
})
4738
})
4839

49-
test('findNoteTitle#find should respect front matter when enableFrontMatterTitle=true', t => {
40+
test('findNoteTitle#find should respect front matter when enableFrontMatterTitle=true', () => {
5041
// [input, expected]
5142
const testCases = [
5243
[
@@ -59,15 +50,11 @@ test('findNoteTitle#find should respect front matter when enableFrontMatterTitl
5950

6051
testCases.forEach(testCase => {
6152
const [input, expected] = testCase
62-
t.is(
63-
findNoteTitle(input, true),
64-
expected,
65-
`Test for find() input: ${input} expected: ${expected}`
66-
)
53+
expect(findNoteTitle(input, true)).toBe(expected)
6754
})
6855
})
6956

70-
test('findNoteTitle#find should respect frontMatterTitleField when provided', t => {
57+
test('findNoteTitle#find should respect frontMatterTitleField when provided', () => {
7158
// [input, expected]
7259
const testCases = [
7360
['---\ntitle: hoge\n---\n# fuga', '# fuga'],
@@ -76,10 +63,6 @@ test('findNoteTitle#find should respect frontMatterTitleField when provided', t
7663

7764
testCases.forEach(testCase => {
7865
const [input, expected] = testCase
79-
t.is(
80-
findNoteTitle(input, true, 'custom'),
81-
expected,
82-
`Test for find() input: ${input} expected: ${expected}`
83-
)
66+
expect(findNoteTitle(input, true, 'custom')).toBe(expected)
8467
})
8568
})

tests/lib/get-todo-status-test.js renamed to tests/lib/get-todo-status.test.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
const test = require('ava')
21
const { getTodoStatus } = require('browser/lib/getTodoStatus')
32

43
// Unit test
5-
test('getTodoStatus should return a correct hash object', t => {
4+
test('getTodoStatus should return a correct hash object', () => {
65
// [input, expected]
76
const testCases = [
87
['', { total: 0, completed: 0 }],
@@ -40,15 +39,7 @@ test('getTodoStatus should return a correct hash object', t => {
4039

4140
testCases.forEach(testCase => {
4241
const [input, expected] = testCase
43-
t.is(
44-
getTodoStatus(input).total,
45-
expected.total,
46-
`Test for getTodoStatus() input: ${input} expected: ${expected.total}`
47-
)
48-
t.is(
49-
getTodoStatus(input).completed,
50-
expected.completed,
51-
`Test for getTodoStatus() input: ${input} expected: ${expected.completed}`
52-
)
42+
expect(getTodoStatus(input).total).toBe(expected.total)
43+
expect(getTodoStatus(input).completed).toBe(expected.completed)
5344
})
5445
})

0 commit comments

Comments
 (0)