Use template string and arrow functions
authorKevin Sawicki <kevinsawicki@gmail.com>
Fri, 4 Mar 2016 22:54:12 +0000 (14:54 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 8 Mar 2016 00:45:14 +0000 (16:45 -0800)
spec/native-image-spec.js

index e72682a10a1287917c35ee211cb99a8104053e60..88588eb1922bf2c64fc94a170c5c9bc6312519d7 100644 (file)
@@ -1,11 +1,13 @@
+'use strict';
+
 const assert = require('assert');
 const nativeImage = require('electron').nativeImage;
 const path = require('path');
 
-describe('nativeImage module', function () {
-  describe('createFromPath(path)', function () {
-    it('normalizes the path', function () {
-      const nonAbsolutePath = path.join(__dirname, 'fixtures', 'api') + path.sep + '..' + path.sep + path.join('assets', 'logo.png');
+describe('nativeImage module', () => {
+  describe('createFromPath(path)', () => {
+    it('normalizes the path', () => {
+      const nonAbsolutePath = `${path.join(__dirname, 'fixtures', 'api')}${path.sep}..${path.sep}${path.join('assets', 'logo.png')}`;
       const image = nativeImage.createFromPath(nonAbsolutePath);
       assert(!image.isEmpty());
     });