-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
var chai = require('chai'); | ||
var expect = require('chai').expect; | ||
var execa = require('execa'); | ||
var helpers = require('./helpers'); | ||
|
||
describe('Symlink', function () { | ||
'use strict'; | ||
|
||
before(function (done) { | ||
helpers.deleteSpaceholders() | ||
.then(function (response) { | ||
done(); | ||
}); | ||
}); | ||
|
||
var result; | ||
|
||
before(function (done) { | ||
execa.shell('npm link') | ||
.then(function (response) { | ||
result = response.stdout; | ||
done(); | ||
}) | ||
.catch(function (error) { | ||
console.log(error); | ||
done(); | ||
}); | ||
}); | ||
|
||
var result2; | ||
|
||
before(function (done) { | ||
execa.shell('spaceholder') | ||
.then(function (response) { | ||
result2 = response.stdout; | ||
done(); | ||
}) | ||
.catch(function (error) { | ||
console.log(error); | ||
done(); | ||
}); | ||
}); | ||
|
||
it('should generate one image with default dimensions', function () { | ||
var dimensions = helpers.getDimensions(helpers.getSpaceholders()[0]); | ||
expect(dimensions).to.be.equal('1024x768'); | ||
}); | ||
}); |