Added vscode settings

This commit is contained in:
Kristofers Solo
2022-04-28 20:54:44 +03:00
parent 245c3ca779
commit 837a479d82
25004 changed files with 2499800 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
describe("MagicPython basic integration tests", function() {
var grammar = null;
beforeEach(function() {
waitsForPromise(function() {
return atom.packages.activatePackage("MagicPython")
});
runs(function() {
grammar = atom.grammars.grammarForScopeName("source.python")
});
});
it("recognises shebang on firstline", function() {
expect(grammar.firstLineRegex.scanner.findNextMatchSync(
"#!/usr/bin/env python")).not.toBeNull();
expect(grammar.firstLineRegex.scanner.findNextMatchSync(
"#! /usr/bin/env python")).not.toBeNull();
});
it("parses the grammar", function() {
expect(grammar).toBeDefined();
expect(grammar.scopeName).toBe("source.python");
});
});