From a74e99a78fba6aa4ea2b36abf180476093a33d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Jureti=C4=87?= Date: Sat, 4 Jan 2014 17:32:30 -0300 Subject: [PATCH] Minor style changes to inventoryCtrlSpec.js --- test/spec/inventoryCtrlSpec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/spec/inventoryCtrlSpec.js b/test/spec/inventoryCtrlSpec.js index 89d7b4b9db..1e986dbd4e 100644 --- a/test/spec/inventoryCtrlSpec.js +++ b/test/spec/inventoryCtrlSpec.js @@ -9,7 +9,7 @@ describe('Inventory Controller', function() { user: { balance: 4, stats: {gp: 0}, - items: {eggs: {'Cactus': 1}, hatchingPotions: {'Base': 1}, food: {'Meat': 1}, pets: {}}, + items: {eggs: {Cactus: 1}, hatchingPotions: {Base: 1}, food: {Meat: 1}, pets: {}}, } }; window.habitrpgShared.wrap(user.user); @@ -42,8 +42,8 @@ describe('Inventory Controller', function() { it('hatches a pet', function(){ scope.chooseEgg('Cactus'); scope.choosePotion('Base'); - expect(user.user.items.eggs).to.eql({'Cactus': 0}); - expect(user.user.items.hatchingPotions).to.eql({'Base': 0}); + expect(user.user.items.eggs).to.eql({Cactus: 0}); + expect(user.user.items.hatchingPotions).to.eql({Base: 0}); expect(user.user.items.pets).to.eql({'Cactus-Base': 5}); expect(scope.selectedEgg).to.eql(null); expect(scope.selectedPotion).to.eql(null); @@ -52,21 +52,21 @@ describe('Inventory Controller', function() { it('sells an egg', function(){ scope.chooseEgg('Cactus'); scope.sellInventory(); - expect(user.user.items.eggs).to.eql({'Cactus': 0}); + expect(user.user.items.eggs).to.eql({Cactus: 0}); expect(user.user.stats.gp).to.eql(3); }); it('sells a potion', function(){ scope.choosePotion('Base'); scope.sellInventory(); - expect(user.user.items.hatchingPotions).to.eql({'Base': 0}); + expect(user.user.items.hatchingPotions).to.eql({Base: 0}); expect(user.user.stats.gp).to.eql(2); }); it('sells food', function(){ scope.chooseFood('Meat'); scope.sellInventory(); - expect(user.user.items.food).to.eql({'Meat': 0}); + expect(user.user.items.food).to.eql({Meat: 0}); expect(user.user.stats.gp).to.eql(1); });