fix: template helper

This commit is contained in:
Julian Lam
2024-03-12 13:27:29 -04:00
parent 4b2495b5aa
commit 52c143aa03
5 changed files with 56 additions and 36 deletions

View File

@@ -151,7 +151,7 @@ describe('helpers', () => {
find: 'viewing',
read: 'viewing',
};
const html = helpers.spawnPrivilegeStates('guests', privs, types);
const html = helpers.spawnPrivilegeStates(1, 'guests', privs, types);
assert.equal(html, `
<td data-privilege="find" data-value="true" data-type="viewing">
<div class="form-check text-center">