()
| 107 | |
| 108 | it(`should throw an error if a layer doesn't exist`, () => { |
| 109 | const defineFn = () => |
| 110 | animation.define([ |
| 111 | { |
| 112 | selector: 'layer-4', |
| 113 | at: 1, |
| 114 | styles: {}, |
| 115 | }, |
| 116 | ]); |
| 117 | |
| 118 | expect(defineFn).toThrowError('Animation: Missing layer ID: layer-4'); |
| 119 | }); |