Update workspace spec…

…to reflect new behavior of `GrammarRegistry#getGrammars`.
This commit is contained in:
Andrew Dupont 2024-03-02 21:23:44 -08:00
parent b9258b5884
commit df6349af83

View File

@ -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;
};