Use template string and arrow functions
This commit is contained in:
parent
145d5abe80
commit
8f820e09be
1 changed files with 6 additions and 4 deletions
|
@ -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());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue