mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
552 B
23 lines
552 B
5 years ago
|
export const tests = []
|
||
|
const t = (f) => tests.push(f)
|
||
|
|
||
|
// escapeStr is declared and of type string
|
||
|
t(() => typeof escapeStr === 'string')
|
||
|
|
||
|
// escapeStr should include the character '
|
||
|
t(() => escapeStr.includes("'"))
|
||
|
|
||
|
// escapeStr should include the character "
|
||
|
t(() => escapeStr.includes('"'))
|
||
|
|
||
|
// escapeStr should include the character `
|
||
|
t(() => escapeStr.includes('`'))
|
||
|
|
||
|
// escapeStr should include the character /
|
||
|
t(() => escapeStr.includes('/'))
|
||
|
|
||
|
// escapeStr should include the character \
|
||
|
t(() => escapeStr.includes('\\'))
|
||
|
|
||
|
Object.freeze(tests)
|