Sha256: 3ea3db4e065192bb01cb16f82c3d3332cdd0e451512300181c2a3f761b9a075f

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

module('coin', lazy('coin'));

test('valid', function(){
  
  expectListener(e, 'update');
  
  expectFlicker(e, 'glow');
  
});

test('touch should collect', function(){
  
  expectCall(e, 'collect');
  
  e.touch();
  
})

test('collect should dispose and stuff', function(){
  
  expectCall(e.sfx, 'play');
  expectCall(e, 'dispose');
  
  expectTrigger(e, 'collect');
  
  e.collect();
  
})

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
entityjs-0.3.1 templates/platform/tests/items/coin_test.js
entityjs-0.3.0 templates/platform/tests/items/coin_test.js