Lint tests

This commit is contained in:
Yury Solovyov 2016-11-06 14:03:16 +03:00 committed by Kevin Sawicki
parent 00748889f9
commit 1aa4fcae08

View file

@ -463,7 +463,7 @@ describe('app module', function () {
small: 16, small: 16,
normal: 32, normal: 32,
large: 48 large: 48
}; }
it('fetches non-empty icon', function (done) { it('fetches non-empty icon', function (done) {
app.getFileIcon(iconPath, function (err, icon) { app.getFileIcon(iconPath, function (err, icon) {
@ -476,6 +476,7 @@ describe('app module', function () {
it('fetches normal size by default', function (done) { it('fetches normal size by default', function (done) {
app.getFileIcon(iconPath, function (err, icon) { app.getFileIcon(iconPath, function (err, icon) {
const size = icon.getSize() const size = icon.getSize()
assert.equal(err, null)
assert.equal(size.height, sizes.normal) assert.equal(size.height, sizes.normal)
assert.equal(size.width, sizes.normal) assert.equal(size.width, sizes.normal)
done() done()
@ -486,6 +487,7 @@ describe('app module', function () {
it('fetches small icons', function (done) { it('fetches small icons', function (done) {
app.getFileIcon(iconPath, { size: 'small' }, function (err, icon) { app.getFileIcon(iconPath, { size: 'small' }, function (err, icon) {
const size = icon.getSize() const size = icon.getSize()
assert.equal(err, null)
assert.equal(size.height, sizes.small) assert.equal(size.height, sizes.small)
assert.equal(size.width, sizes.small) assert.equal(size.width, sizes.small)
done() done()
@ -495,6 +497,7 @@ describe('app module', function () {
it('fetches normal icons', function (done) { it('fetches normal icons', function (done) {
app.getFileIcon(iconPath, { size: 'normal' }, function (err, icon) { app.getFileIcon(iconPath, { size: 'normal' }, function (err, icon) {
const size = icon.getSize() const size = icon.getSize()
assert.equal(err, null)
assert.equal(size.height, sizes.normal) assert.equal(size.height, sizes.normal)
assert.equal(size.width, sizes.normal) assert.equal(size.width, sizes.normal)
done() done()
@ -507,6 +510,7 @@ describe('app module', function () {
} }
app.getFileIcon(iconPath, { size: 'normal' }, function (err, icon) { app.getFileIcon(iconPath, { size: 'normal' }, function (err, icon) {
const size = icon.getSize() const size = icon.getSize()
assert.equal(err, null)
assert.equal(size.height, sizes.normal) assert.equal(size.height, sizes.normal)
assert.equal(size.width, sizes.normal) assert.equal(size.width, sizes.normal)
done() done()