Assert image size as well
authorKevin Sawicki <kevinsawicki@gmail.com>
Mon, 7 Mar 2016 17:28:08 +0000 (09:28 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 8 Mar 2016 00:45:14 +0000 (16:45 -0800)
spec/api-native-image-spec.js

index 88588eb..688819c 100644 (file)
@@ -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);
     });
   });
 });