From 8f820e09be43616ffd65ffc00cd43e6153b1a615 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 4 Mar 2016 14:54:12 -0800 Subject: [PATCH] Use template string and arrow functions --- spec/native-image-spec.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/native-image-spec.js b/spec/native-image-spec.js index e72682a10..88588eb19 100644 --- a/spec/native-image-spec.js +++ b/spec/native-image-spec.js @@ -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()); }); -- 2.34.1