import React from 'react';
import {shallow, mount} from 'enzyme';
import Mosaic from '../src/Mosaic';

// 10x10 spacer.gif
const image = 'data:image/gif;base64,R0lGODlhCgAKAIAAAAAAAAAAACH5BAEAAAAALAAAAAAKAAoAAAIIhI+py+0PYysAOw==';

// describe('Component rendering', () => {
//   it('should contain the correct props', () => {
//     const wrapper = shallow(
//       <Mosaic src={image} tileSize={25} width={100} height={100} />
//     );
//     const {width, height} = wrapper.props();
//     expect(wrapper.is('svg')).toBe(true);
//     expect(width).toBe(100);
//     expect(height).toBe(100);
//   });
// });
describe('Mount', () => {
  const promise = new Promise((resolve, reject) => {
    const wrapper = mount(
      <Mosaic
        src={image}
        tileSize={25}
        width={100}
        height={100}
        onComplete={resolve}
      />
    );
  });
  return promise
    .then(() => {
      expect(true).toBe(false);
    })
    .catch(() => {
    });
});

@@ -225,19 +225,16 @@
 Ow==';%0A%0A
-// 
 describe
@@ -265,19 +265,16 @@
 () =%3E %7B%0A
-// 
   it('sh
@@ -314,19 +314,16 @@
 () =%3E %7B%0A
-// 
     cons
@@ -343,19 +343,16 @@
 hallow(%0A
-// 
       %3CM
@@ -415,21 +415,15 @@
  /%3E%0A
-// 
     );%0A
-// 
     
@@ -463,19 +463,16 @@
 rops();%0A
-// 
     expe
@@ -505,19 +505,16 @@
 (true);%0A
-// 
     expe
@@ -534,19 +534,16 @@
 e(100);%0A
-// 
     expe
@@ -568,379 +568,13 @@
 0);%0A
-// 
   %7D);%0A
-// %7D);%0Adescribe('Mount', () =%3E %7B%0A  const promise = new Promise((resolve, reject) =%3E %7B%0A    const wrapper = mount(%0A      %3CMosaic%0A        src=%7Bimage%7D%0A        tileSize=%7B25%7D%0A        width=%7B100%7D%0A        height=%7B100%7D%0A        onComplete=%7Bresolve%7D%0A      /%3E%0A    );%0A  %7D);%0A  return promise%0A    .then(() =%3E %7B%0A      expect(true).toBe(false);%0A    %7D)%0A    .catch(() =%3E %7B%0A    %7D);%0A%7D);%0A
+%7D);

Fix tests