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

add support for testOnly flag #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/practicalmeteor/meteor-chai.svg?branch=master)](https://travis-ci.org/practicalmeteor/meteor-chai)

## Overview

The Chai Assertion Library, packaged for meteor.
Expand All @@ -8,6 +9,7 @@ The Chai Assertion Library, packaged for meteor.
2.1.0

## Exports

* chai
* assert
* expect
Expand All @@ -29,6 +31,10 @@ Server: Meteor.settings.chai.includeStack

Client: Meteor.settings.public.chai.includeStack

## Production environment

If you don't need to use this package in production environment, you can define a process variable `METEOR_CHAI_TEST_ONLY` set to `true`.

## Changelog

[CHANGELOG](https://github.com/practicalmeteor/meteor-chai/blob/master/CHANGELOG.md)
Expand All @@ -38,4 +44,5 @@ Client: Meteor.settings.public.chai.includeStack
Please visit the [chaijs](http://chaijs.com/) homepage.

## License

The chaijs license is MIT. This meteor package too.
3 changes: 2 additions & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Package.describe({
name: "practicalmeteor:chai",
summary: "The Chai Assertion Library, v2.1.0",
version: "2.1.0_1",
git: "https://github.com/practicalmeteor/meteor-chai.git"
git: "https://github.com/practicalmeteor/meteor-chai.git",
testOnly: process.env.METEOR_CHAI_TEST_ONLY ? process.env.METEOR_CHAI_TEST_ONLY : false
});


Expand Down