1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 03:31:52 +00:00

jest-codemods tests/lib

This commit is contained in:
amedora
2019-08-07 14:17:48 +09:00
parent 606be4304d
commit ffb2603485
12 changed files with 92 additions and 104 deletions

View File

@@ -1,10 +1,9 @@
/**
* @fileoverview Unit test for browser/lib/markdown
*/
const test = require('ava')
const markdown = require('browser/lib/markdownTextHelper')
test(t => {
test(() => {
// [input, expected]
const testCases = [
// List
@@ -42,6 +41,6 @@ test(t => {
testCases.forEach(testCase => {
const [input, expected] = testCase
t.is(markdown.strip(input), expected, `Test for strip() input: ${input} expected: ${expected}`)
expect(markdown.strip(input)).toBe(expected)
})
})