UNPKG

webpack-dependency-suite

Version:

A set of Webpack plugins, loaders and utilities designed for advanced dependency resolution

15 lines (12 loc) 406 B
import { V6Engine, V8Engine, getVersion } from './engine'; import { SportsCar } from './car'; describe('Car - ',() => { it('should have a V8 Engine',() => { let car = new SportsCar(new V8Engine()); expect(car.toString()).toBe('V8 Sports Car'); }); it('should have a V6 Engine',() => { let car = new SportsCar(new V6Engine()); expect(car.toString()).toBe('V6 Sports Car'); }); });