File size: 442 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { expect } from 'chai'
import loginTemplate from './login-template.js'
import AdminJS from '../adminjs.js'
describe('login-template', function () {
const action = '/login'
it('renders error message', async function () {
const adminJs = new AdminJS({})
const errorMessage = 'Something went wrong'
const html = await loginTemplate(adminJs, { action, errorMessage })
expect(html).to.contain(errorMessage)
})
})
|