Suppress deprecations while testing legacy code path

Esse commit está contido em:
Ben Ogle
2014-11-25 16:21:07 -08:00
commit 9cec02420c
+7
Ver Arquivo
@@ -151,6 +151,13 @@ describe "ContextMenuManager", ->
shouldDisplay = false
expect(contextMenu.templateForEvent(dispatchedEvent)).toEqual []
describe "when the menus are specified in a legacy format", ->
beforeEach ->
jasmine.snapshotDeprecations()
afterEach ->
jasmine.restoreDeprecationsSnapshot()
it "allows items to be specified in the legacy format for now", ->
contextMenu.add '.parent':
'A': 'a'