Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 11fdb66

Browse files
committed
test: iojs cleaned up createReadStream's signature
1 parent eb64949 commit 11fdb66

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

test/publish-again-scoped.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var client = common.freshClient()
1616
tap.test("publish again", function (t) {
1717
// not really a tarball, but doesn't matter
1818
var bodyPath = require.resolve("../package.json")
19-
var tarball = fs.createReadStream(bodyPath, "base64")
19+
var tarball = fs.createReadStream(bodyPath)
2020
var pd = fs.readFileSync(bodyPath, "base64")
2121
var pkg = require("../package.json")
2222
var lastTime = null

test/publish-again.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var client = common.freshClient()
1616
tap.test("publish again", function (t) {
1717
// not really a tarball, but doesn't matter
1818
var bodyPath = require.resolve("../package.json")
19-
var tarball = fs.createReadStream(bodyPath, "base64")
19+
var tarball = fs.createReadStream(bodyPath)
2020
var pd = fs.readFileSync(bodyPath, "base64")
2121
var pkg = require("../package.json")
2222
var lastTime = null

test/publish-failed-no-message.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var METADATA = require("../package.json")
1515
var ACCESS = "public"
1616
// not really a tarball, but doesn't matter
1717
var BODY_PATH = require.resolve("../package.json")
18-
var BODY = createReadStream(BODY_PATH, "base64")
18+
var BODY = createReadStream(BODY_PATH)
1919
var AUTH = {
2020
username : USERNAME,
2121
password : PASSWORD,

test/publish-scoped-auth-token.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var client = common.freshClient()
1212
tap.test("publish", function (t) {
1313
// not really a tarball, but doesn't matter
1414
var bodyPath = require.resolve("../package.json")
15-
var tarball = fs.createReadStream(bodyPath, "base64")
15+
var tarball = fs.createReadStream(bodyPath)
1616
var pd = fs.readFileSync(bodyPath, "base64")
1717
var pkg = require("../package.json")
1818
pkg.name = "@npm/npm-registry-client"

test/publish-scoped.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var _auth = new Buffer("username:%1234@asdf%").toString("base64")
1818
tap.test("publish", function (t) {
1919
// not really a tarball, but doesn't matter
2020
var bodyPath = require.resolve("../package.json")
21-
var tarball = fs.createReadStream(bodyPath, "base64")
21+
var tarball = fs.createReadStream(bodyPath)
2222
var pd = fs.readFileSync(bodyPath, "base64")
2323
var pkg = require("../package.json")
2424
pkg.name = "@npm/npm-registry-client"

test/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var METADATA = require("../package.json")
1616
var ACCESS = "public"
1717
// not really a tarball, but doesn't matter
1818
var BODY_PATH = require.resolve("../package.json")
19-
var BODY = fs.createReadStream(BODY_PATH, "base64")
19+
var BODY = fs.createReadStream(BODY_PATH)
2020
var AUTH = {
2121
username : USERNAME,
2222
password : PASSWORD,

0 commit comments

Comments
 (0)