mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 13:26:07 +08:00
better modules
This commit is contained in:
@@ -13,6 +13,7 @@ equal(Konva.Rect, undefined, 'no external shapes');
|
||||
let Rect = require('../lib/shapes/Rect').Rect;
|
||||
|
||||
equal(Rect !== undefined, true, 'Rect is defined');
|
||||
equal(Konva.Rect, Rect, 'Rect is injected');
|
||||
|
||||
// now import from package.json
|
||||
let NewKonva = require('../');
|
||||
@@ -21,3 +22,5 @@ equal(NewKonva.Rect, Rect, 'Same rects');
|
||||
|
||||
// check global injection
|
||||
equal(global.Konva, NewKonva, 'injected');
|
||||
|
||||
equal(NewKonva, Konva, 'Full package is the same as core.');
|
||||
|
||||
Reference in New Issue
Block a user