chore: Update ha-nunjucks to 1.6.2 (#2549)
- Replaces: https://github.com/dermotduffy/advanced-camera-card/pull/2515
This commit is contained in:
committed by
dermotduffy
parent
015fb1876d
commit
c3d3dd3934
@@ -1,9 +1,19 @@
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
import { beforeAll, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import { TemplateManager } from '../../../src/card-controller/templates/index';
|
||||
import { createConfig, createHASS, createStateEntity } from '../../test-utils';
|
||||
import {
|
||||
createConfig,
|
||||
createHASS,
|
||||
createStateEntity,
|
||||
stubConnectedHomeAssistant,
|
||||
} from '../../test-utils';
|
||||
|
||||
// ha-nunjucks reads `window`/`document` at import and renders via a
|
||||
// `window.haNunjucks` global, so the renderer needs a DOM environment.
|
||||
// @vitest-environment jsdom
|
||||
describe('TemplateManager', () => {
|
||||
beforeAll(() => stubConnectedHomeAssistant());
|
||||
|
||||
describe('loadRenderer', () => {
|
||||
it('should render a template raw before the engine is loaded', () => {
|
||||
const manager = new TemplateManager();
|
||||
|
||||
Reference in New Issue
Block a user