alamid-list
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -269,3 +269,3 @@ "use strict"; | ||
/** | ||
* @type {string} | ||
* @type {String} | ||
*/ | ||
@@ -281,3 +281,2 @@ AddEvent.prototype.name = "add"; | ||
/** | ||
* The previous value | ||
* @type {*} | ||
@@ -288,3 +287,2 @@ */ | ||
/** | ||
* The previous value | ||
* @type {Number} | ||
@@ -301,3 +299,3 @@ */ | ||
/** | ||
* @type {string} | ||
* @type {String} | ||
*/ | ||
@@ -313,3 +311,2 @@ RemoveEvent.prototype.name = "remove"; | ||
/** | ||
* The previous value | ||
* @type {*} | ||
@@ -320,3 +317,2 @@ */ | ||
/** | ||
* The previous value | ||
* @type {Number} | ||
@@ -323,0 +319,0 @@ */ |
{ | ||
"name": "alamid-list", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Simple observable arrays", | ||
@@ -5,0 +5,0 @@ "main": "./lib/List.js", |
@@ -15,3 +15,4 @@ "use strict"; | ||
function emit() {} | ||
function removeAllListeners() {} | ||
function on() {} | ||
function removeListener() {} | ||
@@ -22,3 +23,4 @@ it("should set the given config", function () { | ||
emit: emit, | ||
removeAllListeners: removeAllListeners | ||
on: on, | ||
removeListener: removeListener | ||
} | ||
@@ -28,3 +30,4 @@ }); | ||
expect(List.prototype.config.events.emit).to.equal(emit); | ||
expect(List.prototype.config.events.removeAllListeners).to.equal(removeAllListeners); | ||
expect(List.prototype.config.events.on).to.equal(on); | ||
expect(List.prototype.config.events.removeListener).to.equal(removeListener); | ||
}); | ||
@@ -116,3 +119,6 @@ | ||
it("should return the internal array", function () { | ||
expect(list.toArray()).to.be.an.instanceof(Array); | ||
arr = list.toArray(); | ||
expect(arr).to.be.an.instanceof(Array); | ||
list.push(1); | ||
expect(arr).to.eql([1]); | ||
}); | ||
@@ -119,0 +125,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47743
13
1190