mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-10-06 12:38:52 -06:00
18 lines
No EOL
752 B
JavaScript
18 lines
No EOL
752 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const assert = require("assert");
|
|
const languageConfiguration_1 = require("./languageConfiguration");
|
|
describe('wordPattern', function () {
|
|
const wordPattern = languageConfiguration_1.default.wordPattern;
|
|
it('should not match leading colon in symbols (#257)', function () {
|
|
const text = ':fnord';
|
|
const matches = text.match(wordPattern);
|
|
assert.equal(matches[0], 'fnord');
|
|
});
|
|
it('should not match leading colons in constants (#257)', function () {
|
|
const text = '::Bar';
|
|
const matches = text.match(wordPattern);
|
|
assert.equal(matches[0], 'Bar');
|
|
});
|
|
});
|
|
//# sourceMappingURL=languageConfiguration.test.js.map
|