From 17a0aa40f3a1237391484de70c9a839a06463bd9 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Sun, 25 Aug 2019 00:26:39 -0400 Subject: [PATCH] taking out some tests --- packages/core/__tests__/lib.test.ts | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/core/__tests__/lib.test.ts b/packages/core/__tests__/lib.test.ts index 48ea14b4..623d4aa2 100644 --- a/packages/core/__tests__/lib.test.ts +++ b/packages/core/__tests__/lib.test.ts @@ -50,34 +50,34 @@ describe('@actions/core', () => { assertWriteCalls([`##[set-env name=my var2;]var val%0D%0A${os.EOL}`]) }) - it('exportSecret produces the correct commands and sets the env', () => { - core.exportSecret('my secret', 'secret val') - expect(process.env['my secret']).toBe('secret val') - assertWriteCalls([ - `##[set-env name=my secret;]secret val${os.EOL}`, - `##[set-secret]secret val${os.EOL}` - ]) - }) + // it('exportSecret produces the correct commands and sets the env', () => { + // core.exportSecret('my secret', 'secret val') + // expect(process.env['my secret']).toBe('secret val') + // assertWriteCalls([ + // `##[set-env name=my secret;]secret val${os.EOL}`, + // `##[set-secret]secret val${os.EOL}` + // ]) + // }) - it('exportSecret escapes secret names', () => { - core.exportSecret('special char secret \r\n];', 'special secret val') - expect(process.env['special char secret \r\n];']).toBe('special secret val') - assertWriteCalls([ - `##[set-env name=special char secret %0D%0A%5D%3B;]special secret val${ - os.EOL - }`, - `##[set-secret]special secret val${os.EOL}` - ]) - }) + // it('exportSecret escapes secret names', () => { + // core.exportSecret('special char secret \r\n];', 'special secret val') + // expect(process.env['special char secret \r\n];']).toBe('special secret val') + // assertWriteCalls([ + // `##[set-env name=special char secret %0D%0A%5D%3B;]special secret val${ + // os.EOL + // }`, + // `##[set-secret]special secret val${os.EOL}` + // ]) + // }) - it('exportSecret escapes secret values', () => { - core.exportSecret('my secret2', 'secret val\r\n') - expect(process.env['my secret2']).toBe('secret val\r\n') - assertWriteCalls([ - `##[set-env name=my secret2;]secret val%0D%0A${os.EOL}`, - `##[set-secret]secret val%0D%0A${os.EOL}` - ]) - }) + // it('exportSecret escapes secret values', () => { + // core.exportSecret('my secret2', 'secret val\r\n') + // expect(process.env['my secret2']).toBe('secret val\r\n') + // assertWriteCalls([ + // `##[set-env name=my secret2;]secret val%0D%0A${os.EOL}`, + // `##[set-secret]secret val%0D%0A${os.EOL}` + // ]) + // }) it('prependPath produces the correct commands and sets the env', () => { core.addPath('myPath')