Permalink
Browse files

added test for problem found in issue #843

  • Loading branch information...
1 parent 54dcebe commit a82128ca223c680bc44afaf3458e21a02c296034 @drewfish drewfish committed Dec 7, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/unit/lib/app/autoload/test-store.server.js
View
10 tests/unit/lib/app/autoload/test-store.server.js
@@ -285,6 +285,16 @@ YUI().use(
A.areEqual('y', details.x);
},
+ 'expandInstanceForEnv preserves instanceId': function() {
+ var inInstance = {
+ type: 'test_mojit_1',
+ instanceId: 'foo'
+ };
+ store.expandInstanceForEnv('server', inInstance, {}, function(err, outInstance) {
+ A.areSame('foo', outInstance.instanceId);
+ });
+ },
+
'multi preload': function() {
var pre = {
appRVs: Y.clone(store._appRVs, true),

0 comments on commit a82128c

Please sign in to comment.