Skip to content

Commit

Permalink
chore: test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Jun 10, 2021
1 parent 75691ab commit 50e0f8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build": "babel src -d lib",
"watch": "babel -w src -d lib",
"example": "npm run build && babel example/input.js -o example/output.js",
"pretest": "npm run build",
"test": "mocha --require @babel/register",
"test:watch": "npm run test -- --watch",
"prepublish": "npm run clean && npm run build"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/example/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": ["@babel/preset-env"],
"plugins": [
["../../../src"]
["../../../"]
]
}
8 changes: 5 additions & 3 deletions test/fixtures/example/expected.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"use strict";

var config = {
foo: 'bar'
foo: "bar"
};
var foo = 'bar';
var name = 'babel-plugin-inline-json';
var foo = "bar";
var name = "babel-plugin-inline-json";

var foo = require('@babel/register');

Expand Down

0 comments on commit 50e0f8e

Please sign in to comment.