fable 2.0.5 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,8 @@
6
6
  * @author Steven Velozo <steven@velozo.com>
7
7
  */
8
8
 
9
+ var libFable = require('../source/Fable.js');
10
+
9
11
  var Chai = require("chai");
10
12
  var Expect = Chai.expect;
11
13
  var Assert = Chai.assert;
@@ -34,7 +36,7 @@ suite
34
36
  'The class should initialize itself into a happy little object.',
35
37
  function()
36
38
  {
37
- testFable = require('../source/Fable.js').new({LogStreams: false});
39
+ testFable = new libFable({LogStreams: false});
38
40
  // Instantiate the logger
39
41
  Expect(testFable).to.be.an('object', 'Fable should initialize as an object directly from the require statement.');
40
42
  Expect(testFable).to.have.a.property('log')
@@ -52,7 +54,7 @@ suite
52
54
  'Logging should happen...',
53
55
  function(fDone)
54
56
  {
55
- testFable = require('../source/Fable.js').new({Product:'LogTest', LogStreams:[{streamtype:'process.stdout'}]});
57
+ testFable = new libFable({Product:'LogTest', LogStreams:[{streamtype:'process.stdout'}]});
56
58
  Expect(testFable).to.have.a.property('log')
57
59
  .that.is.a('object');
58
60
  testFable.log.info('There should be a visible log entry here...');
@@ -64,7 +66,7 @@ suite
64
66
  'Generate a uuid...',
65
67
  function(fDone)
66
68
  {
67
- testFable = require('../source/Fable.js').new({Product:'LogTest', LogStreams:[{streamtype:'process.stdout'}]});
69
+ testFable = new libFable({Product:'LogTest', LogStreams:[{streamtype:'process.stdout'}]});
68
70
  Expect(testFable).to.have.a.property('log')
69
71
  .that.is.a('object');
70
72
  var tmpUUID = testFable.getUUID();
@@ -80,7 +82,7 @@ suite
80
82
  'Change some settings later...',
81
83
  function(fDone)
82
84
  {
83
- testFable = require('../source/Fable.js').new();
85
+ testFable = new libFable();
84
86
  Expect(testFable).to.have.a.property('settings')
85
87
  .that.is.a('object');
86
88
  Expect(testFable.settings.Product)