mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
781 B
19 lines
781 B
// vim: set softtabstop=16 shiftwidth=16:
|
|
var tap = require("tap")
|
|
var readJson = require("../")
|
|
var path = require("path")
|
|
var fs = require("fs")
|
|
|
|
console.error("BOM test")
|
|
tap.test("BOM test", function (t) {
|
|
var p = path.resolve(__dirname, "fixtures/bom.json")
|
|
readJson(p, function (er, data) {
|
|
if (er) throw er;
|
|
p = path.resolve(__dirname, "fixtures/nobom.json")
|
|
readJson(p, function (er, data2) {
|
|
if (er) throw er;
|
|
t.deepEqual(data, data2)
|
|
t.end()
|
|
})
|
|
})
|
|
})
|
|
|