Skip to content

Commit cd5d255

Browse files
committed
test(exportfunctions): correct FUNCTION_NAME references to K_SERVICE
re #7
1 parent ff200d7 commit cd5d255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__tests__/exportFunctions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('exportFunctions() function exporter test suite', () => {
2929

3030
beforeEach(() => {
3131
jest.resetAllMocks();
32-
delete process.env.FUNCTION_NAME;
32+
delete process.env.K_SERVICE;
3333
});
3434

3535
beforeAll(() => {
@@ -88,7 +88,7 @@ describe('exportFunctions() function exporter test suite', () => {
8888
});
8989

9090
it('should only extract one module when FUNCTION_NAME present', () => {
91-
process.env.FUNCTION_NAME = bff.funcNameFromRelPathDefault(testFiles[1]);
91+
process.env.K_SERVICE = bff.funcNameFromRelPathDefault(testFiles[1]);
9292
const result = exportTestFactory({ enableLogger: true });
9393
expect(result).not.toHaveProperty(filePathToPropertyPath(testFiles[2]));
9494
expect(result).toHaveProperty(filePathToPropertyPath(testFiles[1]));

0 commit comments

Comments
 (0)