Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Mute console.warn for those tests
Browse files Browse the repository at this point in the history
Issue #1283
  • Loading branch information
pablosichert committed Nov 16, 2017
1 parent 15a0b70 commit 1f20523
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Shortcuts/generateHotkeys.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */
import chai, { expect } from 'chai';
import sinon from 'sinon';
import { stub } from 'sinon';
import sinonChai from 'sinon-chai';

chai.use(sinonChai);
Expand Down Expand Up @@ -29,7 +29,7 @@ describe('generateHotkeys', () => {
});

it('should warn about duplicate keys', () => {
const warn = sinon.spy(console, 'warn');
const warn = stub(console, 'warn');

try {
const keymap = {
Expand All @@ -48,7 +48,7 @@ describe('generateHotkeys', () => {
});

it('should warn about blacklisted hotkeys', () => {
const warn = sinon.spy(console, 'warn');
const warn = stub(console, 'warn');

try {
const blacklist = {
Expand Down

0 comments on commit 1f20523

Please sign in to comment.