mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Manual decaf language-todo
This commit is contained in:
parent
206c90b6dc
commit
12c64d9336
@ -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"
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user