Skip to content

Commit

Permalink
- fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ognian committed Feb 28, 2017
1 parent b36bc22 commit 8a23971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/metadata.test.js
Expand Up @@ -60,8 +60,8 @@ test.cb("should pass metadata code snippet", (t) => {
t.true(files.length > 0);
fs.readFile(path.resolve(outputDir, "reactIntlMessages.json"),
function(err, data) {
const text = data.toString();
t.is(err, null);
const text = data.toString();
const jsonText = JSON.parse(text);
t.true(jsonText.length == 1);
t.true(jsonText[0].id == "greetingId");
Expand Down Expand Up @@ -123,8 +123,8 @@ test.cb("should pass metadata code snippet ( cache version )", (t) => {
t.true(files.length > 0);
fs.readFile(path.resolve(outputDir, "reactIntlMessages.json"),
function(err, data) {
const text = data.toString();
t.is(err, null);
const text = data.toString();
const jsonText = JSON.parse(text);
t.true(jsonText.length == 1);
t.true(jsonText[0].id == "greetingId");
Expand Down

0 comments on commit 8a23971

Please sign in to comment.