Skip to content

Commit c5a7eeb

Browse files
Also update tests for addHelperFiles() removal
1 parent 234f981 commit c5a7eeb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/command_spec.js

+4-4
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)