phase 8
This commit is contained in:
@@ -44,8 +44,9 @@ describe('Image Selection', () => {
|
||||
|
||||
// Create test image
|
||||
const imageElement = new Image();
|
||||
imageElement.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==';
|
||||
|
||||
imageElement.src =
|
||||
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==';
|
||||
|
||||
image = new Konva.Image({
|
||||
image: imageElement,
|
||||
x: 100,
|
||||
@@ -79,7 +80,7 @@ describe('Image Selection', () => {
|
||||
|
||||
it('cleanup function removes click handlers', () => {
|
||||
const cleanup = setupImageSelection(image, imageId);
|
||||
|
||||
|
||||
// Select the image
|
||||
image.fire('click', { evt: { ctrlKey: false, metaKey: false } });
|
||||
expect(get(selection).selectedIds.has(imageId)).toBe(true);
|
||||
@@ -420,4 +421,3 @@ describe('Image Selection', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user