Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Follow-up switchfly/ember-cli-mocha#9 #13

Merged
merged 1 commit into from
Dec 4, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var path = require('path');
var fs = require('fs');

module.exports = {
name: 'Ember CLI Mocha',
Expand Down Expand Up @@ -46,5 +47,15 @@ module.exports = {
});
});
}
},

contentFor: function(type) {
if (type === 'test-body') {
return this._readTemplate('test-body');
}
},

_readTemplate: function(name) {
return fs.readFileSync(path.join(__dirname, 'templates', name + '.html'));
}
};
2 changes: 2 additions & 0 deletions templates/test-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div id="qunit"></div>
<div id="qunit-fixture"></div>