fix conflics

This commit is contained in:
Matias Alejo Garcia 2014-06-17 16:25:38 -03:00
commit cd71ce4421
25 changed files with 268 additions and 122 deletions

View file

@ -87,3 +87,24 @@ describe("Unit: controllerUtils", function() {
});
describe("Unit: Backup Service", function() {
var sinon = require('sinon');
beforeEach(angular.mock.module('copayApp.services'));
it('should contain a backup service', inject(function(backupService) {
expect(backupService).not.to.equal(null);
}));
it('should backup in file', inject(function(backupService) {
var mock = sinon.mock(window);
var expectation = mock.expects('saveAs');
backupService.download(new FakeWallet());
expectation.once();
}));
it('should backup by email', inject(function(backupService) {
var mock = sinon.mock(window);
var expectation = mock.expects('open');
backupService.sendEmail('fake@test.com', new FakeWallet());
expectation.once();
}));
});