import TestGenerator from './test-generator';
import escape from './utils/escape';
export default class QUnitTestGenerator implements TestGenerator {
suiteHeader(suiteName: string) {
return `QUnit.module(${escape(suiteName)});\n`;
}
suiteFooter() {
return '';
}
test(testName: string, passed: boolean, assertionMessage?: string) {
return (
`QUnit.test(${escape(testName)}, function(assert) {\n` +
` assert.expect(1);\n` +
` assert.ok(${passed}, ${escape(assertionMessage || testName)});\n` +
`});\n`
);
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|