Browse Source

Assert image size as well

Kevin Sawicki 9 years ago
parent
commit
7692edf50e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spec/api-native-image-spec.js

+ 2 - 0
spec/api-native-image-spec.js

@@ -10,6 +10,8 @@ describe('nativeImage module', () => {
       const nonAbsolutePath = `${path.join(__dirname, 'fixtures', 'api')}${path.sep}..${path.sep}${path.join('assets', 'logo.png')}`;
       const image = nativeImage.createFromPath(nonAbsolutePath);
       assert(!image.isEmpty());
+      assert.equal(image.getSize().height, 190);
+      assert.equal(image.getSize().width, 538);
     });
   });
 });