run js-beautify on everything

...with two spaces. Command: js-beautify -s 2 -r [filename]
This commit is contained in:
Ryan X. Charles 2014-06-24 08:36:32 -07:00
commit ea2e2d4e19
49 changed files with 859 additions and 682 deletions

View file

@ -21,7 +21,7 @@ describe("Unit: Controllers", function() {
totalCopayers: 5,
spendUnconfirmed: 1,
reconnectDelay: 100,
networkName: 'testnet'
networkName: 'testnet'
};
describe('Backup Controller', function() {
@ -117,7 +117,7 @@ describe("Unit: Controllers", function() {
describe('Send Controller', function() {
var scope, form;
beforeEach(angular.mock.module('copayApp'));
beforeEach(angular.mock.inject(function($compile, $rootScope, $controller){
beforeEach(angular.mock.inject(function($compile, $rootScope, $controller) {
scope = $rootScope.$new();
$rootScope.wallet = new FakeWallet(config);
var element = angular.element(
@ -131,7 +131,8 @@ describe("Unit: Controllers", function() {
newlabel: null,
};
$compile(element)(scope);
$controller('SendController', {$scope: scope,
$controller('SendController', {
$scope: scope,
$modal: {},
});
scope.$digest();

View file

@ -85,7 +85,11 @@ describe("Unit: Testing Directives", function() {
beforeEach(inject(function($compile, $rootScope) {
$rootScope.wallet = {
addressBook: {'2MtBXKLtZuXGDshUcyH6yq7aZ33Snbb49pT': {label: ':)'}}
addressBook: {
'2MtBXKLtZuXGDshUcyH6yq7aZ33Snbb49pT': {
label: ':)'
}
}
}
element1 = angular.element(
'<contact address="2MtBXKLtZuXGDshUcyH6yq7aZ33Snbb49pT" />'

View file

@ -22,16 +22,31 @@ describe('Unit: Testing Filters', function() {
it('should filter correctly', inject(function($filter) {
var limitAddress = $filter('limitAddress');
var addresses = [
{isChange: true, balance: 0},
{isChange: false, balance: 0},
{isChange: true, balance: 0},
{isChange: false, balance: 0},
{isChange: true, balance: 0},
{isChange: false, balance: 0},
{isChange: true, balance: 0},
{isChange: false, balance: 0}
];
var addresses = [{
isChange: true,
balance: 0
}, {
isChange: false,
balance: 0
}, {
isChange: true,
balance: 0
}, {
isChange: false,
balance: 0
}, {
isChange: true,
balance: 0
}, {
isChange: false,
balance: 0
}, {
isChange: true,
balance: 0
}, {
isChange: false,
balance: 0
}];
expect(limitAddress(addresses, false).length).to.equal(1);
addresses[0].isChange = false;

View file

@ -126,7 +126,7 @@ describe("Unit: isMobile Service", function() {
isMobile.any().should.equal(false);
}));
it('should detect mobile if user agent is Android', inject(function(isMobile) {
navigator.__defineGetter__('userAgent', function(){
navigator.__defineGetter__('userAgent', function() {
return 'Android 2.2.3';
});
isMobile.any().should.equal(true);