npm update + fix linked to this update
found an issue with eslint when empty comments were used.
This commit is contained in:
@@ -49,7 +49,7 @@ describe('units', function () {
|
||||
|
||||
it('Test svgedit.units.shortFloat()', function () {
|
||||
assert.ok(units.shortFloat);
|
||||
assert.equal(typeof units.shortFloat, typeof function () { /* */ });
|
||||
assert.equal(typeof units.shortFloat, typeof function () { /* empty fn */ });
|
||||
|
||||
const {shortFloat} = units;
|
||||
assert.equal(shortFloat(0.00000001), 0);
|
||||
@@ -61,7 +61,7 @@ describe('units', function () {
|
||||
|
||||
it('Test svgedit.units.isValidUnit()', function () {
|
||||
assert.ok(units.isValidUnit);
|
||||
assert.equal(typeof units.isValidUnit, typeof function () { /* */ });
|
||||
assert.equal(typeof units.isValidUnit, typeof function () { /* empty fn */ });
|
||||
|
||||
const {isValidUnit} = units;
|
||||
assert.ok(isValidUnit('0'));
|
||||
@@ -85,7 +85,7 @@ describe('units', function () {
|
||||
|
||||
it('Test svgedit.units.convertUnit()', function () {
|
||||
assert.ok(units.convertUnit);
|
||||
assert.equal(typeof units.convertUnit, typeof function () { /* */ });
|
||||
assert.equal(typeof units.convertUnit, typeof function () { /* empty fn */ });
|
||||
// cm in default setup
|
||||
assert.equal(units.convertUnit(42), 1.1113);
|
||||
assert.equal(units.convertUnit(42, 'px'), 42);
|
||||
|
||||
Reference in New Issue
Block a user