"use strict";


var assert = require('assert');
var gas = require('.././index.js');

describe('library require', function () {
   var m = gas.require('./test/src');

   it('content is not loaded to global', function () {
      assert(typeof x==='undefined');
      assert(typeof setX==='undefined');
   })

   it('content from all files is accessible', function () {
      assert(m.hasOwnProperty('x'));
      assert(m.hasOwnProperty('setX'));
   })
   
   it('variable initialize correct', function () {
      assert(m.x == 5);
   })

   it('function updates variable from other file', function () {
      m.setX(7);
      assert(m.x == 7);
   })
});

describe('advanced mock of services', function () {
});
@@ -96,23 +96,23 @@
 library 
-require
+loading
 ', funct
@@ -122,17 +122,16 @@
  () %7B%0A  
- 
 var m = 
@@ -158,17 +158,16 @@
 src');%0A%0A
- 
   it('co
@@ -204,34 +204,32 @@
 , function () %7B%0A
-  
     assert(typeo
@@ -231,19 +231,21 @@
 typeof x
+ 
 ===
+ 
 'undefin
@@ -250,18 +250,16 @@
 ined');%0A
-  
     asse
@@ -272,19 +272,21 @@
 eof setX
+ 
 ===
+ 
 'undefin
@@ -289,30 +289,28 @@
 efined');%0A  
- 
 %7D)%0A%0A
- 
   it('conten
@@ -352,34 +352,32 @@
 nction () %7B%0A    
-  
 assert(m.hasOwnP
@@ -391,18 +391,16 @@
 ('x'));%0A
-  
     asse
@@ -436,16 +436,50 @@
 %0A   
-%7D)%0A   %0A 
+ assert(m.hasOwnProperty('Utils'));%0A  %7D)%0A%0A
   it
@@ -520,26 +520,24 @@
 nction () %7B%0A
-  
     assert(m
@@ -548,22 +548,20 @@
 = 5);%0A  
- 
 %7D)%0A%0A
- 
   it('fu
@@ -620,18 +620,16 @@
 ) %7B%0A    
-  
 m.setX(7
@@ -635,18 +635,16 @@
 7);%0A    
- 
- 
 assert(m
@@ -653,17 +653,16 @@
  == 7);%0A
- 
   %7D)%0A%7D);
@@ -677,16 +677,185 @@
 be('
-advanced
+default mock of services', function () %7B%0A  var m = gas.require('./test/src');%0A  it('Logger is mocked', function () %7B%0A    m.Utils.logCurrentDateTime();%0A  %7D)%0A%7D);%0A%0Adescribe('custom
  moc

test mock of Logger