mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
18 lines
539 B
JavaScript
18 lines
539 B
JavaScript
'use strict';
|
|
|
|
const { expect } = require('chai');
|
|
const overrideStdoutWrite = require('process-utils/override-stdout-write');
|
|
const listVersion = require('../../../../lib/cli/render-version');
|
|
|
|
describe('test/unit/lib/cli/list-version.test.js', () => {
|
|
it('should log version', async () => {
|
|
let stdoutData = '';
|
|
await overrideStdoutWrite(
|
|
(data) => (stdoutData += data),
|
|
() => listVersion()
|
|
);
|
|
expect(stdoutData).to.have.string('Framework Core: ');
|
|
expect(stdoutData).to.have.string('SDK: ');
|
|
});
|
|
});
|