icons testing
parent
65b71e7f17
commit
e08f5c4627
|
|
@ -2,6 +2,7 @@ import * as assert from 'node:assert';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
import * as userFunctions from '../helpers/functions.user.js';
|
import * as userFunctions from '../helpers/functions.user.js';
|
||||||
import * as sqlFilterFunctions from '../helpers/functions.sqlFilters.js';
|
import * as sqlFilterFunctions from '../helpers/functions.sqlFilters.js';
|
||||||
|
import * as iconFunctions from '../helpers/functions.icons.js';
|
||||||
describe('functions.user', () => {
|
describe('functions.user', () => {
|
||||||
describe('unauthenticated, no user in session', () => {
|
describe('unauthenticated, no user in session', () => {
|
||||||
const noUserRequest = {
|
const noUserRequest = {
|
||||||
|
|
@ -194,3 +195,9 @@ describe('functions.sqlFilters', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
describe('functions.icons', () => {
|
||||||
|
it('returns a list of icon classes', async () => {
|
||||||
|
const iconClasses = await iconFunctions.getSolidIconClasses();
|
||||||
|
assert.ok(iconClasses.includes('save'));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import fs from 'node:fs'
|
||||||
|
|
||||||
import * as userFunctions from '../helpers/functions.user.js'
|
import * as userFunctions from '../helpers/functions.user.js'
|
||||||
import * as sqlFilterFunctions from '../helpers/functions.sqlFilters.js'
|
import * as sqlFilterFunctions from '../helpers/functions.sqlFilters.js'
|
||||||
|
import * as iconFunctions from '../helpers/functions.icons.js'
|
||||||
|
|
||||||
describe('functions.user', () => {
|
describe('functions.user', () => {
|
||||||
describe('unauthenticated, no user in session', () => {
|
describe('unauthenticated, no user in session', () => {
|
||||||
|
|
@ -286,3 +287,11 @@ describe('functions.sqlFilters', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('functions.icons', () => {
|
||||||
|
it('returns a list of icon classes', async () => {
|
||||||
|
const iconClasses = await iconFunctions.getSolidIconClasses()
|
||||||
|
|
||||||
|
assert.ok(iconClasses.includes('save'))
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue