fix(seed): Make element naming optional (#16926)

Closes #16905
Closes #15224
pull/16921/head
Nguyen Quoc Bao 2018-03-24 02:12:28 +08:00 committed by mstellaluna
parent 5aaa03c67e
commit 5ad70d90df
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@
],
"tests": [
"assert(arr.every((v, i) => v === i + 3),'message: <code>arr</code> should be <code>[3,4,5,6,7,8,9,10]</code>');",
"getUserInput => assert(getUserInput('index').match(/\\[\\s*\\w\\s*,\\s*\\w\\s*,\\s*...arr\\s*\\]/g),'message: destructuring was used.');",
"getUserInput => assert(getUserInput('index').match(/\\[\\s*\\w*\\s*,\\s*\\w*\\s*,\\s*...arr\\s*\\]/g),'message: destructuring was used.');",
"getUserInput => assert(!getUserInput('index').match(/Array.slice/g), 'message: <code>Array.slice()</code> was not used.');"
],
"type": "waypoint",