From ec3f37dee35b7c158fdfcb4f375e6b76e92eb2bd Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 22 Apr 2015 11:59:32 -0600 Subject: [PATCH] Avoid deprecation warnings in spec --- spec/text-editor-spec.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 6926e057f..4e990b914 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -4271,6 +4271,8 @@ describe "TextEditor", -> marker = editor.markBufferRange([[1, 0], [1, 0]]) it "casts 'gutter' type to 'line-number' unless a gutter name is specified.", -> + jasmine.snapshotDeprecations() + lineNumberDecoration = editor.decorateMarker(marker, {type: 'gutter'}) customGutterDecoration = editor.decorateMarker(marker, {type: 'gutter', gutterName: 'custom'}) expect(lineNumberDecoration.getProperties().type).toBe 'line-number' @@ -4278,6 +4280,8 @@ describe "TextEditor", -> expect(customGutterDecoration.getProperties().type).toBe 'gutter' expect(customGutterDecoration.getProperties().gutterName).toBe 'custom' + jasmine.restoreDeprecationsSnapshot() + it 'reflects an added decoration when one of its custom gutters is decorated.', -> gutter = editor.addGutter {'name': 'custom-gutter'} decoration = gutter.decorateMarker marker, {class: 'custom-class'}