Skip to content

Commit ea8abc4

Browse files
committed
fix: enable skipped failing test for logs command test suite
1 parent 1761bf6 commit ea8abc4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/unit/commands/log.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ describe('Log', () => {
273273
expect(logStub.calledTwice).to.be.true;
274274
});
275275

276-
// TODO: Fix failing text
277-
it.skip('should log "No server logs to display" and exit the process for error messages with NoServerlessRoutesError', () => {
276+
it('should log "No server logs to display" and exit the process for error messages with NoServerlessRoutesError', () => {
278277
const isArrayStub = sandbox.stub().returns(true);
279278
const includesStub = sandbox.stub().returns(true);
280279
const mapStub = sandbox.stub().returns(['NoServerlessRoutesError']);
@@ -287,8 +286,6 @@ describe('Log', () => {
287286

288287
sandbox.stub(logInstance, 'log').callsFake(logStub);
289288
sandbox.stub(Array, 'isArray').callsFake(isArrayStub);
290-
sandbox.stub(Array.prototype, 'includes').callsFake(includesStub);
291-
sandbox.stub(Array.prototype, 'map').callsFake(mapStub);
292289

293290
logInstance.showLogs(event);
294291
});

0 commit comments

Comments
 (0)