UNPKG

477 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const attachConfig_1 = require("./attachConfig");
4test('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});