Skip to content

Commit fbaf707

Browse files
committed
2 parents 9d0222b + c5a7eeb commit fbaf707

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async function runJasmine(jasmine, env, print) {
140140
}
141141

142142
if (env.helpers !== undefined && env.helpers.length) {
143-
jasmine.addHelperFiles(env.helpers);
143+
jasmine.addMatchingHelperFiles(env.helpers);
144144
}
145145

146146
if (env.requires !== undefined && env.requires.length) {

spec/command_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('command', function() {
5353

5454
this.command = new Command(projectBaseDir, examplesDir, this.out.print);
5555

56-
this.fakeJasmine = jasmine.createSpyObj('jasmine', ['loadConfigFile', 'addHelperFiles', 'addRequires', 'showColors', 'execute',
56+
this.fakeJasmine = jasmine.createSpyObj('jasmine', ['loadConfigFile', 'addMatchingHelperFiles', 'addRequires', 'showColors', 'execute',
5757
'randomizeTests', 'seed', 'coreVersion', 'clearReporters', 'addReporter']);
5858
this.fakeJasmine.loader = new Loader();
5959
this.fakeJasmine.env = jasmine.createSpyObj('env', ['configure']);
@@ -243,17 +243,17 @@ describe('command', function() {
243243

244244
it('should be able to add one helper pattern', async function() {
245245
await this.command.run(this.fakeJasmine, ['--helper=helpers/**/*.js']);
246-
expect(this.fakeJasmine.addHelperFiles).toHaveBeenCalledWith(['helpers/**/*.js']);
246+
expect(this.fakeJasmine.addMatchingHelperFiles).toHaveBeenCalledWith(['helpers/**/*.js']);
247247
});
248248

249249
it('should be able to add many helper patterns', async function() {
250250
await this.command.run(this.fakeJasmine, ['--helper=helpers/**/*.js', '--helper=other.js']);
251-
expect(this.fakeJasmine.addHelperFiles).toHaveBeenCalledWith(['helpers/**/*.js', 'other.js']);
251+
expect(this.fakeJasmine.addMatchingHelperFiles).toHaveBeenCalledWith(['helpers/**/*.js', 'other.js']);
252252
});
253253

254254
it('should not modify helper patterns if no argument given', async function() {
255255
await this.command.run(this.fakeJasmine, []);
256-
expect(this.fakeJasmine.addHelperFiles).not.toHaveBeenCalled();
256+
expect(this.fakeJasmine.addMatchingHelperFiles).not.toHaveBeenCalled();
257257
});
258258

259259
it('should be able to add one require', async function() {

0 commit comments

Comments
 (0)