-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (29 loc) · 695 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-cli-jsmockito',
afterInstall: function() {
return this.addBowerPackageToProject('jshamcrest');
},
included: function(app) {
this._super.included(app);
app.import('vendor/jsmockito.js', {
type: 'test'
});
app.import('vendor/jshamcrest.js', {
type: 'test'
});
},
contentFor: function(type, config) {
if(type === 'test-body-footer') {
var setupJsMockito = '\
<script language="javascript">\n\
JsHamcrest.Integration.QUnit();\n\
JsMockito.Integration.QUnit();\n\
</script>\n\
';
return setupJsMockito;
}
return '';
}
};