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.
- package/.config/code-server/config.yaml +4 -0
- package/.config/configstore/update-notifier-npm-check-updates.json +4 -0
- package/.config/configstore/update-notifier-npm.json +4 -0
- package/.vscode/launch.json +46 -0
- package/Dockerfile_LUXURYCode +69 -0
- package/dist/fable.js +1140 -1051
- package/dist/fable.min.js +105 -57
- package/dist/fable.min.js.map +1 -1
- package/gulpfile.js +50 -29
- package/package.json +33 -16
- package/source/Fable-Browser-Shim.js +14 -0
- package/source/Fable.js +1 -1
- package/test/Fable_tests.js +6 -4
package/test/Fable_tests.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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)
|