Skip to content

Commit

Permalink
Use dedent for unpadding (babel#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh authored and hzoo committed Mar 25, 2017
1 parent cdb92fe commit a750684
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"homepage": "https://github.com/babel/babel-eslint",
"devDependencies": {
"babel-eslint": "^7.0.0",
"dedent": "^0.7.0",
"eslint": "^3.18.0",
"eslint-config-babel": "^6.0.0",
"eslint-plugin-flowtype": "^2.30.3",
Expand Down
2 changes: 1 addition & 1 deletion test/babel-eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var assert = require("assert");
var babelEslint = require("..");
var espree = require("espree");
var util = require("util");
var unpad = require("../utils/unpad");
var unpad = require("dedent");

// Checks if the source ast implements the target ast. Ignores extra keys on source ast
function assertImplementsAST(target, source, path) {
Expand Down
2 changes: 1 addition & 1 deletion test/non-regression.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*eslint-env mocha*/
"use strict";
var eslint = require("eslint");
var unpad = require("../utils/unpad");
var unpad = require("dedent");

function verifyAndAssertMessages(code, rules, expectedMessages, sourceType, overrideConfig) {
var config = {
Expand Down
14 changes: 0 additions & 14 deletions utils/unpad.js

This file was deleted.

4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ debug@^2.1.1, debug@^2.2.0:
dependencies:
ms "0.7.2"

dedent@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"

deep-is@~0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
Expand Down

0 comments on commit a750684

Please sign in to comment.