Skip to content

Commit

Permalink
Merge pull request #716 from ldapjs/dependabot/npm_and_yarn/tap-15.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Apr 5, 2021
2 parents 1570e04 + 2a4af7a commit 50ab06f
Show file tree
Hide file tree
Showing 16 changed files with 409 additions and 401 deletions.
4 changes: 1 addition & 3 deletions .taprc
@@ -1,6 +1,4 @@
esm: false
jsx: false
ts: false
check-coverage: false

files:
- 'test/**/*.test.js'
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -37,7 +37,7 @@
"highlight.js": "^10.6.0",
"husky": "^4.2.5",
"marked": "^2.0.0",
"tap": "14.11.0"
"tap": "15.0.1"
},
"scripts": {
"test": "tap --no-cov",
Expand Down
22 changes: 11 additions & 11 deletions test/change.test.js
Expand Up @@ -154,11 +154,11 @@ test('apply - replace', function (t) {

// plain
res = Change.apply(single, { cn: ['old'] })
t.deepEqual(res.cn, ['new'])
t.same(res.cn, ['new'])

// multiple
res = Change.apply(single, { cn: ['old', 'also'] })
t.deepEqual(res.cn, ['new'])
t.same(res.cn, ['new'])

// empty
res = Change.apply(empty, { cn: ['existing'] })
Expand All @@ -167,15 +167,15 @@ test('apply - replace', function (t) {

// absent
res = Change.apply(single, { dn: ['otherjunk'] })
t.deepEqual(res.cn, ['new'])
t.same(res.cn, ['new'])

// scalar formatting "success"
res = Change.apply(single, { cn: 'old' }, true)
t.equal(res.cn, 'new')

// scalar formatting "failure"
res = Change.apply(twin, { cn: 'old' }, true)
t.deepEqual(res.cn, ['new', 'two'])
t.same(res.cn, ['new', 'two'])

t.end()
})
Expand All @@ -192,27 +192,27 @@ test('apply - add', function (t) {

// plain
res = Change.apply(single, { cn: ['old'] })
t.deepEqual(res.cn, ['old', 'new'])
t.same(res.cn, ['old', 'new'])

// multiple
res = Change.apply(single, { cn: ['old', 'also'] })
t.deepEqual(res.cn, ['old', 'also', 'new'])
t.same(res.cn, ['old', 'also', 'new'])

// absent
res = Change.apply(single, { dn: ['otherjunk'] })
t.deepEqual(res.cn, ['new'])
t.same(res.cn, ['new'])

// scalar formatting "success"
res = Change.apply(single, { }, true)
t.equal(res.cn, 'new')

// scalar formatting "failure"
res = Change.apply(single, { cn: 'old' }, true)
t.deepEqual(res.cn, ['old', 'new'])
t.same(res.cn, ['old', 'new'])

// duplicate add
res = Change.apply(single, { cn: 'new' })
t.deepEqual(res.cn, ['new'])
t.same(res.cn, ['new'])

t.end()
})
Expand All @@ -229,7 +229,7 @@ test('apply - delete', function (t) {

// plain
res = Change.apply(single, { cn: ['old', 'new'] })
t.deepEqual(res.cn, ['new'])
t.same(res.cn, ['new'])

// empty
res = Change.apply(single, { cn: ['old'] })
Expand All @@ -242,7 +242,7 @@ test('apply - delete', function (t) {

// scalar formatting "failure"
res = Change.apply(single, { cn: ['old', 'several', 'items'] }, true)
t.deepEqual(res.cn, ['several', 'items'])
t.same(res.cn, ['several', 'items'])

// absent
res = Change.apply(single, { dn: ['otherjunk'] })
Expand Down

0 comments on commit 50ab06f

Please sign in to comment.