fix(challenges): update RegEx for testcase in es6 challenge
This commit is contained in:
committed by
Kristofer Koishigawa
parent
12c78d49d5
commit
857b3e9a88
@ -1341,12 +1341,12 @@
|
||||
{
|
||||
"text": "<code>foo</code> is exported.",
|
||||
"testString":
|
||||
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+foo\\s+=+\\s\"bar\"/g), '<code>foo</code> is exported.');"
|
||||
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+foo\\s*=\\s*\"bar\"/g), '<code>foo</code> is exported.');"
|
||||
},
|
||||
{
|
||||
"text": "<code>bar</code> is exported.",
|
||||
"testString":
|
||||
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+bar\\s+=+\\s\"foo\"/g), '<code>bar</code> is exported.');"
|
||||
"getUserInput => assert(getUserInput('index').match(/export\\s+const\\s+bar\\s*=\\s*\"foo\"/g), '<code>bar</code> is exported.');"
|
||||
}
|
||||
],
|
||||
"releasedOn": "Feb 17, 2017",
|
||||
@ -1360,7 +1360,7 @@
|
||||
"contents": [
|
||||
"\"use strict\";",
|
||||
"const foo = \"bar\";",
|
||||
"const bar= \"foo\";"
|
||||
"const bar = \"foo\";"
|
||||
],
|
||||
"head": ["window.exports = function(){};"],
|
||||
"tail": []
|
||||
|
Reference in New Issue
Block a user