UNPKG

@kv-systems/ng-packagr

Version:

Compile and package Angular libraries in Angular Package Format (APF)

28 lines (23 loc) 656 B
import { expect } from 'chai'; import * as fs from 'fs'; import * as path from 'path'; describe(`@sample/same-name`, () => { describe(`index.d.ts`, () => { let TYPINGS; beforeAll(() => { TYPINGS = fs.readFileSync(path.resolve(__dirname, '..', 'dist', 'index.d.ts'), 'utf-8'); }); it(`should exist`, () => { expect(TYPINGS).to.be.ok; }); }); describe(`testing/index.d.ts`, () => { let TYPINGS; beforeAll(() => { TYPINGS = fs.readFileSync(path.resolve(__dirname, '..', 'dist', 'testing', 'index.d.ts'), 'utf-8'); }); it(`should exist`, () => { expect(TYPINGS).to.be.ok; }); }); });