2023-02-24 08:53:51 -08:00
|
|
|
import {validate} from "@actions/languageservice";
|
2022-11-29 17:41:48 -05:00
|
|
|
import {TextDocument} from "vscode-languageserver-textdocument";
|
2022-11-08 17:00:59 -08:00
|
|
|
|
|
|
|
|
describe("simple test", () => {
|
|
|
|
|
it("should work", async () => {
|
|
|
|
|
const doc = TextDocument.create("uri", "workflow", 1, "on: push");
|
|
|
|
|
|
|
|
|
|
const r = await validate(doc);
|
|
|
|
|
expect(r).not.toBeNull();
|
|
|
|
|
});
|
|
|
|
|
});
|