Skip to content

Commit

Permalink
Merge 0bcf6b0 into dae00c1
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Oct 4, 2020
2 parents dae00c1 + 0bcf6b0 commit 94d953f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## v3.0.0 YYYY-mm-dd

- Correct typings for updates @types/node.

## v2.1.4 2019-10-08

- Bugfix `mocha-steps` wrapper for testing.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"@types/chai": "^4.2.3",
"@types/dirty-chai": "^2.0.2",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.11",
"@types/node": "^12.12.62",
"chai": "^4.2.0",
"changelog-parser": "^2.8.0",
"coveralls": "^3.0.6",
Expand Down
16 changes: 4 additions & 12 deletions test/fs-blob-storage-errors.ts
Expand Up @@ -39,9 +39,7 @@ Feature("Test FsBlobStorage errors", () => {
})

Then("error is caught", () => {
expect(error)
.to.be.an("error")
.and.have.property("code", "ENOENT")
expect(error).to.be.an("error").and.have.property("code", "ENOENT")
})
})

Expand All @@ -68,9 +66,7 @@ Feature("Test FsBlobStorage errors", () => {
})

Then("error is caught", () => {
expect(error)
.to.be.an("error")
.and.have.property("code", "ENOENT")
expect(error).to.be.an("error").and.have.property("code", "ENOENT")
})
})

Expand All @@ -97,9 +93,7 @@ Feature("Test FsBlobStorage errors", () => {
})

Then("error is caught", () => {
expect(error)
.to.be.an("error")
.and.have.property("code", "ENOENT")
expect(error).to.be.an("error").and.have.property("code", "ENOENT")
})
})

Expand All @@ -126,9 +120,7 @@ Feature("Test FsBlobStorage errors", () => {
})

Then("error is caught", () => {
expect(error)
.to.be.an("error")
.and.have.property("code", "ENOENT")
expect(error).to.be.an("error").and.have.property("code", "ENOENT")
})
})
})
8 changes: 2 additions & 6 deletions test/fs-blob-storage-exclusive-errors.ts
Expand Up @@ -43,9 +43,7 @@ Feature("Test FsBlobStorage errors for exclusive option", () => {
})

Then("error is caught", () => {
expect(error)
.to.be.an("error")
.and.have.property("code", "EEXIST")
expect(error).to.be.an("error").and.have.property("code", "EEXIST")
})
})

Expand Down Expand Up @@ -76,9 +74,7 @@ Feature("Test FsBlobStorage errors for exclusive option", () => {
})

Then("error is caught", () => {
expect(error)
.to.be.an("error")
.and.have.property("code", "EEXIST")
expect(error).to.be.an("error").and.have.property("code", "EEXIST")
})
})
})
6 changes: 5 additions & 1 deletion test/lib/mock-fs.ts
Expand Up @@ -146,7 +146,11 @@ export function mkdir(
callback = options
} else if (typeof options === "object") {
const makeDirectoryOptions = options as fs.MakeDirectoryOptions
mode = makeDirectoryOptions.mode || 0o777
if (typeof makeDirectoryOptions.mode === "number") {
mode = makeDirectoryOptions.mode || 0o777
} else {
mode = parseInt(makeDirectoryOptions.mode!, 8) || 0o777
}
recursive = makeDirectoryOptions.recursive || false
}
if (recursive) {
Expand Down

0 comments on commit 94d953f

Please sign in to comment.