2025-07-13 18:33:25 +03:00
|
|
|
import * as assert from 'assert';
|
|
|
|
|
import * as vscode from 'vscode';
|
2026-04-02 19:12:35 +03:00
|
|
|
import { CASE_MODIFIERS } from '@gromlab/create';
|
2025-07-13 18:33:25 +03:00
|
|
|
|
|
|
|
|
suite('Extension Test Suite', () => {
|
|
|
|
|
vscode.window.showInformationMessage('Start all tests.');
|
|
|
|
|
|
|
|
|
|
test('Sample test', () => {
|
|
|
|
|
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
|
|
|
|
|
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
suite('Template Variable Modifiers', () => {
|
|
|
|
|
const input = 'my super-name';
|
|
|
|
|
|
|
|
|
|
test('CASE_MODIFIERS map covers all', () => {
|
|
|
|
|
for (const [mod, fn] of Object.entries(CASE_MODIFIERS)) {
|
|
|
|
|
assert.strictEqual(typeof fn(input), 'string');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|