From df6349af8312b32762c5c28eee3a4dbb7be5066a Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Sat, 2 Mar 2024 21:23:44 -0800 Subject: [PATCH] =?UTF-8?q?Update=20workspace=20spec=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …to reflect new behavior of `GrammarRegistry#getGrammars`. --- spec/workspace-spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/workspace-spec.js b/spec/workspace-spec.js index 8ac8d5eaf..c8e0c451e 100644 --- a/spec/workspace-spec.js +++ b/spec/workspace-spec.js @@ -2027,11 +2027,14 @@ describe('Workspace', () => { 'source.coffee', 'source.js', // Tree-sitter grammars also load 'source.js', + 'source.js', + 'source.js.regexp', 'source.js.regexp', 'source.js.regexp', 'source.js.regexp.replacement', 'source.jsdoc', 'source.jsdoc', + 'source.jsdoc', 'source.litcoffee', 'text.plain.null-grammar', 'text.todo', @@ -2277,11 +2280,11 @@ describe('Workspace', () => { Ctor.prototype = HTMLElement.prototype; TestItemElement.prototype = new Ctor(); TestItemElement.__super__ = HTMLElement.prototype; - TestItemElement.prototype.initialize = function(model) { + TestItemElement.prototype.initialize = function (model) { this.model = model; return this; }; - TestItemElement.prototype.getModel = function() { + TestItemElement.prototype.getModel = function () { return this.model; };