// SF — status-guards unit tests

import assert from "node:assert/strict";
import { test } from 'vitest';

import { isClosedStatus } from "../status-guards.ts";

test('isClosedStatus: "complete" returns true', () => {
	assert.equal(isClosedStatus("complete"), true);
});

test('isClosedStatus: "done" returns true', () => {
	assert.equal(isClosedStatus("done"), true);
});

test('isClosedStatus: "skipped" returns true', () => {
	assert.equal(isClosedStatus("skipped"), true);
});

test('isClosedStatus: "pending" returns false', () => {
	assert.equal(isClosedStatus("pending"), false);
});

test('isClosedStatus: "in_progress" returns false', () => {
	assert.equal(isClosedStatus("in_progress"), false);
});

test('isClosedStatus: "active" returns false', () => {
	assert.equal(isClosedStatus("active"), false);
});

test('isClosedStatus: "" (empty string) returns false', () => {
	assert.equal(isClosedStatus(""), false);
});
