@jymfony/exceptions
Advanced tools
Comparing version 0.1.0-alpha.8 to 0.1.0-alpha.9
@@ -8,1 +8,2 @@ require('./lib/Exception'); | ||
require('./lib/UnderflowException'); | ||
require('./lib/UnexpectedValueException'); |
{ | ||
"name": "@jymfony/exceptions", | ||
"version": "0.1.0-alpha.8", | ||
"version": "0.1.0-alpha.9", | ||
"description": "Jymfony exception (core package)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
let expect = require('chai').expect; | ||
const expect = require('chai').expect; | ||
@@ -9,4 +9,4 @@ describe('[Exceptions] BadMethodCallException', function () { | ||
it('Is instance of Exception', function () { | ||
return expect(new BadMethodCallException).to.be.an.instanceof(Exception); | ||
return expect(new BadMethodCallException()).to.be.an.instanceof(Exception); | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
let expect = require('chai').expect; | ||
const expect = require('chai').expect; | ||
@@ -11,3 +11,3 @@ class TestException extends Exception {} | ||
it('Is instance of Error', function () { | ||
return expect(new Exception).to.be.an.instanceof(Error); | ||
return expect(new Exception()).to.be.an.instanceof(Error); | ||
}); | ||
@@ -20,5 +20,5 @@ | ||
it('Captures stack', function () { | ||
let ex = new Exception; | ||
const ex = new Exception(); | ||
return expect(ex.stack).to.be.not.empty; | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
let expect = require('chai').expect; | ||
const expect = require('chai').expect; | ||
@@ -9,4 +9,4 @@ describe('[Exceptions] InvalidArgumentException', function () { | ||
it('Is instance of Exception', function () { | ||
return expect(new InvalidArgumentException).to.be.an.instanceof(Exception); | ||
return expect(new InvalidArgumentException()).to.be.an.instanceof(Exception); | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
let expect = require('chai').expect; | ||
const expect = require('chai').expect; | ||
@@ -9,4 +9,4 @@ describe('[Exceptions] LogicException', function () { | ||
it('Is instance of Exception', function () { | ||
return expect(new LogicException).to.be.an.instanceof(Exception); | ||
return expect(new LogicException()).to.be.an.instanceof(Exception); | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
let expect = require('chai').expect; | ||
const expect = require('chai').expect; | ||
@@ -9,4 +9,4 @@ describe('[Exceptions] OutOfBoundsException', function () { | ||
it('Is instance of Exception', function () { | ||
return expect(new OutOfBoundsException).to.be.an.instanceof(Exception); | ||
return expect(new OutOfBoundsException()).to.be.an.instanceof(Exception); | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
let expect = require('chai').expect; | ||
const expect = require('chai').expect; | ||
@@ -9,4 +9,4 @@ describe('[Exceptions] RuntimeException', function () { | ||
it('Is instance of Exception', function () { | ||
return expect(new RuntimeException).to.be.an.instanceof(Exception); | ||
return expect(new RuntimeException()).to.be.an.instanceof(Exception); | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
let expect = require('chai').expect; | ||
const expect = require('chai').expect; | ||
@@ -9,4 +9,4 @@ describe('[Exceptions] UnderflowException', function () { | ||
it('Is instance of Exception', function () { | ||
return expect(new UnderflowException).to.be.an.instanceof(Exception); | ||
return expect(new UnderflowException()).to.be.an.instanceof(Exception); | ||
}); | ||
}); |
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
8243
23
191
6