mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-23 07:51:02 +01:00
11 lines
533 B
TypeScript
11 lines
533 B
TypeScript
import { test } from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { labelWithScopeAnswer } from "../src/core/rules.ts";
|
|
|
|
test("a scope answer settles the label two scope classifiers left open, so the PR goes to review", () => {
|
|
assert.equal(labelWithScopeAnswer(null, "small-extra"), "small extra");
|
|
assert.equal(labelWithScopeAnswer("plugin candidate", "take"), "missing feature");
|
|
assert.equal(labelWithScopeAnswer("bugfix", "take"), "bugfix");
|
|
assert.equal(labelWithScopeAnswer(null, "plugin"), null);
|
|
});
|