todo-spec.js 363 B

123456789101112131415
  1. describe("TODO grammar", () => {
  2. let grammar = null;
  3. beforeEach(() => {
  4. waitsForPromise(() => atom.packages.activatePackage("language-todo"));
  5. runs(() => grammar = atom.grammars.grammarForScopeName("text.todo"));
  6. });
  7. it("parses the grammar", () => {
  8. expect(grammar).toBeTruthy();
  9. expect(grammar.scopeName).toBe("text.todo");
  10. });
  11. });