(params)
| 3 | const path = require('path'); |
| 4 | let TextEditor = null; |
| 5 | const buildTextEditor = function(params) { |
| 6 | if (atom.workspace.buildTextEditor != null) { |
| 7 | return atom.workspace.buildTextEditor(params); |
| 8 | } else { |
| 9 | if (TextEditor == null) { ({ |
| 10 | TextEditor |
| 11 | } = require('atom')); } |
| 12 | return new TextEditor(params); |
| 13 | } |
| 14 | }; |
| 15 | |
| 16 | describe("JavaScript grammar", function() { |
| 17 | let grammar = null; |
no test coverage detected