var
keyword.");'
- text: ''
testString: 'getUserInput => assert(getUserInput("index").match(/const\s+magic/g), "magic
should be a constant variable (by using const
).");'
- text: ''
testString: 'assert(typeof magic === "function", "magic
is a function
.");'
- text: ''
testString: 'assert(magic().getDate() == new Date().getDate(), "magic()
returns correct date.");'
- text: ''
testString: 'getUserInput => assert(!getUserInput("index").match(/function/g), "function
keyword was not used.");'
```