Manual decaf language-todo

This commit is contained in:
confused-Techie 2023-08-23 17:18:42 -07:00
parent 206c90b6dc
commit 12c64d9336
2 changed files with 6 additions and 23 deletions

View File

@ -1,13 +0,0 @@
describe "TODO grammar", ->
grammar = null
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage("language-todo")
runs ->
grammar = atom.grammars.grammarForScopeName("text.todo")
it "parses the grammar", ->
expect(grammar).toBeTruthy()
expect(grammar.scopeName).toBe "text.todo"

View File

@ -1,19 +1,15 @@
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
describe("TODO grammar", function() {
describe("TODO grammar", () => {
let grammar = null;
beforeEach(function() {
beforeEach(() => {
waitsForPromise(() => atom.packages.activatePackage("language-todo"));
return runs(() => grammar = atom.grammars.grammarForScopeName("text.todo"));
runs(() => grammar = atom.grammars.grammarForScopeName("text.todo"));
});
return it("parses the grammar", function() {
it("parses the grammar", () => {
expect(grammar).toBeTruthy();
return expect(grammar.scopeName).toBe("text.todo");
expect(grammar.scopeName).toBe("text.todo");
});
});