Skip to content

Commit 39f48bd

Browse files
committed
Update to include config in arguments for createFileSpy
1 parent 657dba6 commit 39f48bd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spec/CloudCode.spec.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,11 +3695,13 @@ describe('saveFile hooks', () => {
36953695
foo: 'bar',
36963696
},
36973697
};
3698+
const config = Config.get('test');
36983699
expect(createFileSpy).toHaveBeenCalledWith(
36993700
jasmine.any(String),
37003701
newData,
37013702
'text/plain',
3702-
newOptions
3703+
newOptions,
3704+
config
37033705
);
37043706
});
37053707

@@ -3727,11 +3729,13 @@ describe('saveFile hooks', () => {
37273729
foo: 'bar',
37283730
},
37293731
};
3732+
const config = Config.get('test');
37303733
expect(createFileSpy).toHaveBeenCalledWith(
37313734
jasmine.any(String),
37323735
newData,
37333736
newContentType,
3734-
newOptions
3737+
newOptions,
3738+
config
37353739
);
37363740
const expectedFileName = 'donald_duck.pdf';
37373741
expect(file._name.indexOf(expectedFileName)).toBe(file._name.length - expectedFileName.length);
@@ -3757,11 +3761,13 @@ describe('saveFile hooks', () => {
37573761
metadata: { foo: 'bar' },
37583762
tags: { bar: 'foo' },
37593763
};
3764+
const config = Config.get('test');
37603765
expect(createFileSpy).toHaveBeenCalledWith(
37613766
jasmine.any(String),
37623767
jasmine.any(Buffer),
37633768
'text/plain',
3764-
options
3769+
options,
3770+
config
37653771
);
37663772
});
37673773

0 commit comments

Comments
 (0)