mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 17:00:23 +00:00
test: update ACTIONS count from 6 to 4, remove copy-context test cases
This commit is contained in:
parent
be3d0fc6f6
commit
ecfeff5e11
1 changed files with 2 additions and 8 deletions
|
|
@ -9,8 +9,8 @@ import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|||
const { ACTIONS, buildCommandArgs, runSubprocess } = await import('../src/testable.js');
|
||||
|
||||
describe('ACTIONS', () => {
|
||||
it('has exactly 6 entries', () => {
|
||||
expect(ACTIONS).toHaveLength(6);
|
||||
it('has exactly 4 entries', () => {
|
||||
expect(ACTIONS).toHaveLength(4);
|
||||
});
|
||||
it('every entry has id, title, cmd, okMsg', () => {
|
||||
for (const a of ACTIONS) {
|
||||
|
|
@ -26,12 +26,6 @@ describe('ACTIONS', () => {
|
|||
it('repair action is enabled (no disabled flag)', () => {
|
||||
expect(ACTIONS.find(a => a.id === 'paperforge-repair')?.disabled).toBeUndefined();
|
||||
});
|
||||
it('copy-context action has no needsKey (pure JS)', () => {
|
||||
expect(ACTIONS.find(a => a.id === 'paperforge-copy-context')?.needsKey).toBeUndefined();
|
||||
});
|
||||
it('copy-collection-context action has no needsFilter (pure JS)', () => {
|
||||
expect(ACTIONS.find(a => a.id === 'paperforge-copy-collection-context')?.needsFilter).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('buildCommandArgs', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue