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

Commit

Permalink
Adjusts ProcessCommand.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Dec 21, 2019
1 parent 4ed5e97 commit c5bcd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Commands/ProcessCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ describe("ProcessCommand", () => {
when(cliSpy.getOptions()).thenReturn({
src: 'scss/some-file.scss',
dest: 'css/some-file.css',
includePath: ['path1', 'path2']
includePath: 'path1'
});

when(commandSpy.doCompileWork(anything())).thenResolve('compiled-css');
when(commandSpy.doValidateWork(anything())).thenResolve();

command.run()
.then(() => {
verify(commandSpy.doCompileWork(objectContaining({ includePath: ['path1', 'path2'] }))).once();
verify(commandSpy.doCompileWork(objectContaining({ includePath: 'path1' }))).once();
verify(commandSpy.doValidateWork('compiled-css')).once();
assert.equal(fs.readFileSync('css/some-file.css'), 'compiled-css');
done();
Expand Down

0 comments on commit c5bcd98

Please sign in to comment.