Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
Update titor to v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meeber committed May 9, 2016
1 parent 20d8617 commit e787542
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 31 deletions.
5 changes: 3 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
env: {
current: {
plugins: ["add-module-exports", "transform-es2015-modules-commonjs"]
plugins: ["add-module-exports", "transform-es2015-modules-commonjs"],
presets: ["stage-0"],
},
legacy: {plugins: ["add-module-exports"], presets: ["es2015"]},
legacy: {plugins: ["add-module-exports"], presets: ["es2015", "stage-0"]},
},
}
6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

9 changes: 9 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parser: babel-eslint
parserOptions:
ecmaVersion: 7
sourceType: module
env:
browser: true
es6: true
node: true
extends: eslint-config-tt
10 changes: 0 additions & 10 deletions .titorrc

This file was deleted.

6 changes: 6 additions & 0 deletions .titorrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bundle: true
cover: true
coverReport: true
export: chaiAssertX
lint: true
test: true
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"node": ">=0.12.0"
},
"dependencies": {
"titor-util": "^0.1.3"
"semver": "^5.1.0"
},
"peer-dependencies": {
"chai": ">=1.9.0"
},
"devDependencies": {
"eslint-config-tt": "^1.2.0",
"titor": "^0.1.0"
"titor": "^0.3.0"
},
"scripts": {
"build": "titor-build",
Expand All @@ -27,6 +27,7 @@
"postversion": "titor-postversion",
"preversion": "titor-preversion",
"release": "titor-release",
"setup": "titor-setup",
"test": "titor-test",
"travis": "titor-travis"
}
Expand Down
9 changes: 0 additions & 9 deletions test/.eslintrc.js

This file was deleted.

7 changes: 7 additions & 0 deletions test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
env:
mocha: true
rules:
func-names: 0
no-invalid-this: 0
no-unused-expressions: 0
prefer-arrow-callback: 0
3 changes: 2 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* global chai chaiAssertX expect */
/* global chai chaiAssertX */

chai.use(chaiAssertX);

let assert = chai.assert;
let assertx = chai.assertx;
let expect = chai.expect;

describe("assertx", function () {
it(".fail", function () {
Expand Down
4 changes: 3 additions & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* global expect */
/* global chai */

import {createFnWrapper, getArgOrder, getNewActualIndex} from "../src/utils";

let expect = chai.expect;

describe(".createFnWrapper", function () {
it("if has less than 2 args, should return same fn ref", function () {
function pets (cat) { return [cat] }
Expand Down

0 comments on commit e787542

Please sign in to comment.