mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Ensure to test non colored output
This commit is contained in:
parent
06dafbeba2
commit
ce8e24d9df
@ -5,6 +5,7 @@ const fs = require('fs');
|
||||
const fse = require('fs-extra');
|
||||
const BbPromise = require('bluebird');
|
||||
const AWS = require('aws-sdk');
|
||||
const stripAnsi = require('strip-ansi');
|
||||
const { expect } = require('chai');
|
||||
const { execSync } = require('../utils/child-process');
|
||||
const { getTmpDirPath, replaceTextInFile } = require('../utils/fs');
|
||||
@ -78,7 +79,7 @@ describe('Service Lifecyle Integration Test', () => {
|
||||
it('should list existing deployments and roll back to first deployment', () => {
|
||||
let timestamp;
|
||||
const listDeploys = execSync(`${serverlessExec} deploy list`);
|
||||
const output = listDeploys.toString();
|
||||
const output = stripAnsi(listDeploys.toString());
|
||||
const match = output.match(new RegExp('Datetime: (.+)'));
|
||||
if (match) {
|
||||
timestamp = match[1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user