Skip to content

Commit 78bfdc7

Browse files
committed
Add test case for runTemplaterFile buttion action
1 parent 67c2b31 commit 78bfdc7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/fields/Button.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,16 @@ const buttonActionTests: Record<ButtonActionType, () => void> = {
253253
}).not.toThrow();
254254
});
255255
},
256+
[ButtonActionType.RUN_TEMPLATER_FILE]: () => {
257+
test('does not throw', () => {
258+
expect(async () => {
259+
await simplifiedRunAction({
260+
type: ButtonActionType.RUN_TEMPLATER_FILE,
261+
templateFile: "test"
262+
});
263+
}).not.toThrow();
264+
})
265+
}
256266
};
257267

258268
describe('Button', () => {

0 commit comments

Comments
 (0)