mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2025-12-06 07:50:37 +00:00
feat: ported action definition from setup-terraform
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
parent
c37e0c575a
commit
01bef202d2
19 changed files with 18728 additions and 3 deletions
17
wrapper/test/output-listener.test.js
Normal file
17
wrapper/test/output-listener.test.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Copyright (c) HashiCorp, Inc.
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
|
||||
const OutputListener = require('../lib/output-listener');
|
||||
|
||||
describe('output-listener', () => {
|
||||
it('receives and exposes data', () => {
|
||||
const listener = new OutputListener();
|
||||
const listen = listener.listener;
|
||||
listen(Buffer.from('foo'));
|
||||
listen(Buffer.from('bar'));
|
||||
listen(Buffer.from('baz'));
|
||||
expect(listener.contents).toEqual('foobarbaz');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue