Use Object.values
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import expect from '../expect.js';
|
||||
import {assign, clear, getValues, isEmpty} from '../../../src/ol/obj.js';
|
||||
import {assign, clear, isEmpty} from '../../../src/ol/obj.js';
|
||||
|
||||
describe('ol/obj.js', () => {
|
||||
describe('assign()', function () {
|
||||
@@ -49,13 +49,6 @@ describe('ol/obj.js', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('getValues()', function () {
|
||||
it('gets a list of property values from an object', function () {
|
||||
expect(getValues({foo: 'bar', num: 42}).sort()).to.eql([42, 'bar']);
|
||||
expect(getValues([])).to.eql([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('isEmpty()', function () {
|
||||
it('checks if an object has any properties', function () {
|
||||
expect(isEmpty({})).to.be(true);
|
||||
|
||||
Reference in New Issue
Block a user