1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const attachConfig_1 = require("./attachConfig");
|
4 | test('attaching the config', () => {
|
5 | const archive = {
|
6 | append: jest.fn()
|
7 | };
|
8 | const content = '{"integration_uuid":"uuid","functions":["get","put"]}';
|
9 | const fileName = { name: 'bearer.config.json' };
|
10 | attachConfig_1.default(archive, content, fileName);
|
11 | expect(archive.append).toHaveBeenCalledWith(content, fileName);
|
12 | });
|