Skip to content

Commit

Permalink
Merge c89fd0d into 663da1f
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jan 4, 2019
2 parents 663da1f + c89fd0d commit 2d8a498
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .npmrc
@@ -0,0 +1,2 @@
package-lock = false
save-exact = false
15 changes: 3 additions & 12 deletions .travis.yml
Expand Up @@ -5,20 +5,11 @@ language: node_js

matrix:
include:
- node_js: "0.10"
env: LINT=0
- node_js: "0.12"
env: LINT=0
- node_js: "4"
env: LINT=1
- node_js: "5"
env: LINT=1
- node_js: "6"
env: LINT=1
- node_js: "7"
env: LINT=1
- node_js: "8"
env: LINT=1
- node_js: "9"
- node_js: "10"

cache:
directories:
Expand All @@ -28,5 +19,5 @@ notifications:
email: false

script:
- if [ "$LINT" = "1" ]; then npm run lint; fi
- npm run lint
- npm run travis
8 changes: 6 additions & 2 deletions bootstrap-unexpected-markdown.js
@@ -1,4 +1,8 @@
/*global unexpected:true*/
unexpected = require('unexpected');
unexpected = require('unexpected')
.clone()
.use(require('./lib/unexpected-date'));

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
unexpected.output.preferredWidth = 80;
unexpected.use(require('./lib/unexpected-date'));
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -52,7 +52,7 @@
"rollup-plugin-node-globals": "^1.2.1",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-uglify": "^2.0.1",
"unexpected": "^10.32.0",
"unexpected": "^11.0.0-4",
"unexpected-documentation-site-generator": "^4.0.0",
"unexpected-markdown": "^1.4.0"
}
Expand Down
4 changes: 4 additions & 0 deletions test/after.spec.js
Expand Up @@ -3,6 +3,10 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;
var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
5 changes: 5 additions & 0 deletions test/before.spec.js
Expand Up @@ -3,6 +3,11 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;

var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
6 changes: 6 additions & 0 deletions test/between.spec.js
Expand Up @@ -3,6 +3,12 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;


var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);
var dateC = new Date(2010, 10, 12);
Expand Down
5 changes: 5 additions & 0 deletions test/close-to.spec.js
Expand Up @@ -3,6 +3,11 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;

var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
5 changes: 5 additions & 0 deletions test/equal.spec.js
Expand Up @@ -3,6 +3,11 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;

var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Expand Up @@ -2,4 +2,4 @@
--recursive
--check-leaks
--require ./bootstrap-unexpected-markdown.js
--compilers md:unexpected-markdown
--require unexpected-markdown

0 comments on commit 2d8a498

Please sign in to comment.