fix: use assert instead of expect in test file (#30)
This commit is contained in:
@@ -1,59 +1,55 @@
|
|||||||
/**
|
/**
|
||||||
* Tests for queue-status execution-aware sequencing logic
|
* Tests for queue-status execution-aware sequencing logic
|
||||||
|
* Run with: node --test lib/tools/queue-status.test.ts
|
||||||
*/
|
*/
|
||||||
import { describe, it, expect } from "node:test";
|
import { describe, it } from "node:test";
|
||||||
|
import assert from "node:assert";
|
||||||
// Import the functions we want to test
|
|
||||||
// Note: Since these are internal functions, we'd need to export them or test through the public API
|
|
||||||
// For now, we'll document the expected behavior
|
|
||||||
|
|
||||||
describe("queue_status execution-aware sequencing", () => {
|
describe("queue_status execution-aware sequencing", () => {
|
||||||
describe("priority ordering", () => {
|
describe("priority ordering", () => {
|
||||||
it("should prioritize To Improve > To Test > To Do", () => {
|
it("should prioritize To Improve > To Test > To Do", () => {
|
||||||
// To Improve has priority 3, To Test has 2, To Do has 1
|
// To Improve has priority 3, To Test has 2, To Do has 1
|
||||||
expect(3).toBeGreaterThan(2);
|
assert.strictEqual(3 > 2, true);
|
||||||
expect(2).toBeGreaterThan(1);
|
assert.strictEqual(2 > 1, true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("role assignment", () => {
|
describe("role assignment", () => {
|
||||||
it("should assign To Improve to dev", () => {
|
it("should assign To Improve to dev", () => {
|
||||||
// To Improve = dev work
|
// To Improve = dev work
|
||||||
expect(true).toBe(true);
|
assert.ok(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should assign To Do to dev", () => {
|
it("should assign To Do to dev", () => {
|
||||||
// To Do = dev work
|
// To Do = dev work
|
||||||
expect(true).toBe(true);
|
assert.ok(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should assign To Test to qa", () => {
|
it("should assign To Test to qa", () => {
|
||||||
// To Test = qa work
|
// To Test = qa work
|
||||||
expect(true).toBe(true);
|
assert.ok(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("execution modes", () => {
|
describe("execution modes", () => {
|
||||||
it("should support parallel project execution", () => {
|
it("should support parallel project execution", () => {
|
||||||
// Projects can run simultaneously
|
// Projects can run simultaneously
|
||||||
expect(true).toBe(true);
|
assert.ok(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should support sequential project execution", () => {
|
it("should support sequential project execution", () => {
|
||||||
// Only one project at a time
|
// Only one project at a time
|
||||||
expect(true).toBe(true);
|
assert.ok(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should support parallel role execution within project", () => {
|
it("should support parallel role execution within project", () => {
|
||||||
// DEV and QA can run simultaneously
|
// DEV and QA can run simultaneously
|
||||||
expect(true).toBe(true);
|
assert.ok(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should support sequential role execution within project", () => {
|
it("should support sequential role execution within project", () => {
|
||||||
// DEV and QA alternate
|
// DEV and QA alternate
|
||||||
expect(true).toBe(true);
|
assert.ok(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Tests defined - run with: node --test lib/tools/queue-status.test.ts");
|
|
||||||
|
|||||||
Reference in New Issue
Block a user