Spy on console.warn to prevent spamming in the specs

This commit is contained in:
Nathan Sobo 2014-11-13 13:32:36 -07:00 committed by Ben Ogle
parent 441dcfb56a
commit 3546f21af7

View File

@ -78,6 +78,7 @@ describe "StylesElement", ->
describe "atom-text-editor shadow DOM selector upgrades", ->
beforeEach ->
element.setAttribute('context', 'atom-text-editor')
spyOn(console, 'warn')
it "upgrades selectors containing .editor-colors", ->
atom.styles.addStyleSheet(".editor-colors {background: black;}", context: 'atom-text-editor')