Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Test setting of default value for snap icon
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwilkin committed Jul 21, 2016
1 parent 78431ea commit 21664fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions www/tests/modelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ describe('Snap', function() {
response = this.model.parse({status: CONF.INSTALL_STATE.INSTALLING});
expect(response.isInstalled).toBeFalsy();
});

it('sets default icon if empty', function() {
var response;

response = this.model.parse({icon: '/icon.png'});
expect(response.icon).toBe('/icon.png');

response = this.model.parse({icon: ''});
expect(response.icon).toBe(this.model.defaults.icon);
});
});

describe('setInstallActionString', function() {
Expand Down

0 comments on commit 21664fa

Please sign in to comment.