mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Decaf language-csharp
This commit is contained in:
parent
bf7b3280b3
commit
016aa08449
@ -1,17 +0,0 @@
|
||||
describe "Language C# package", ->
|
||||
|
||||
beforeEach ->
|
||||
waitsForPromise ->
|
||||
atom.packages.activatePackage("language-csharp")
|
||||
|
||||
describe "C# Script grammar", ->
|
||||
it "parses the grammar", ->
|
||||
grammar = atom.grammars.grammarForScopeName("source.csx")
|
||||
expect(grammar).toBeDefined()
|
||||
expect(grammar.scopeName).toBe "source.csx"
|
||||
|
||||
describe "C# Cake grammar", ->
|
||||
it "parses the grammar", ->
|
||||
grammar = atom.grammars.grammarForScopeName("source.cake")
|
||||
expect(grammar).toBeDefined()
|
||||
expect(grammar.scopeName).toBe "source.cake"
|
@ -1,8 +1,4 @@
|
||||
/*
|
||||
* decaffeinate suggestions:
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
|
||||
*/
|
||||
|
||||
describe("Language C# package", function() {
|
||||
|
||||
beforeEach(() => waitsForPromise(() => atom.packages.activatePackage("language-csharp")));
|
||||
@ -10,12 +6,12 @@ describe("Language C# package", function() {
|
||||
describe("C# Script grammar", () => it("parses the grammar", function() {
|
||||
const grammar = atom.grammars.grammarForScopeName("source.csx");
|
||||
expect(grammar).toBeDefined();
|
||||
return expect(grammar.scopeName).toBe("source.csx");
|
||||
expect(grammar.scopeName).toBe("source.csx");
|
||||
}));
|
||||
|
||||
return describe("C# Cake grammar", () => it("parses the grammar", function() {
|
||||
describe("C# Cake grammar", () => it("parses the grammar", function() {
|
||||
const grammar = atom.grammars.grammarForScopeName("source.cake");
|
||||
expect(grammar).toBeDefined();
|
||||
return expect(grammar.scopeName).toBe("source.cake");
|
||||
expect(grammar.scopeName).toBe("source.cake");
|
||||
}));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user