UNPKG

ng-alain

Version:

Schematics specific to NG-ALAIN

19 lines (14 loc) 585 B
import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; import { createAlainApp } from '../utils/testing'; describe('NgAlainSchematic: plugin: rtl', () => { let runner: SchematicTestRunner; let tree: UnitTestTree; beforeEach(async () => { ({ runner, tree } = await createAlainApp()); tree = await runner.runSchematic('plugin', { name: 'rtl', type: 'add' }, tree); }); it(`should be working`, () => { const con = tree.readContent(`/projects/foo/src/app/layout/basic/basic.ts`); expect(con).toContain(`HeaderRTL`); }); });