test: port spec-es6 tests to vitest

This commit is contained in:
Panagiotis Papadopoulos
2025-01-12 23:42:46 +01:00
parent 325a3b6c83
commit 3f584af171
3 changed files with 8 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
import * as attributeParser from "../src/public/app/services/attribute_parser.js";
import { describe, it, expect } from "vitest";
import attributeParser from "../src/public/app/services/attribute_parser.ts";
import { describe, it, expect, execute } from "./mini_test.js";
describe("Lexing", () => {
it("simple label", () => {
@@ -96,5 +96,3 @@ describe("error cases", () => {
expect(() => attributeParser.lexAndParse("#")).toThrow(`Attribute name is empty, please fill the name.`);
});
});
execute();