Skip to content

Commit

Permalink
1.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbitskyy committed Oct 28, 2023
1 parent b002890 commit c8107bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/GitLab/AbstractProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class AbstractProperties {

clear() {
for (let v of ['getOwnPropertyOf', 'copyProperties', 'getOwnPropertyOf', 'formatDate']) delete this[v];
return this;
}
}

Expand Down
7 changes: 4 additions & 3 deletions tests/classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ const GitLab = require("../src");
assert.strictEqual(jobs.list.length, 2);
})
it('Jobs has own properties from AbstractList and AbstractProperties', () => {
const props = new Set(jobs.getOwnPropertyOf(new GitLab.AbstractList())
.concat(jobs.getOwnPropertyOf(new AbstractProperties())))
const jp = jobs.getOwnPropertyOf(jobs)
const ap = new AbstractProperties();
const props = new Set(ap.getOwnPropertyOf(new GitLab.AbstractList())
.concat(ap.getOwnPropertyOf(ap.clear())))
const jp = new AbstractProperties().getOwnPropertyOf(jobs)
assert.strictEqual(props.size, jp.length);
})
it('Jobs - find and findOne', () => {
Expand Down

0 comments on commit c8107bc

Please sign in to comment.