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

asu-ke-web-services/dont-get-fired-game

Repository files navigation

Sustainability Game

Build Status Coverage Status Code Climate Stories in Ready

Development

Setting up your environment

You will need:

After those have been installed, clone this repo:

cd sustainability-game
npm install
meteor

You may have to run sudo npm install to get the NPM modules installed.

Running Tests

Once you know meteor can run and launch without errors, you can run tests using:

npm test

Writing Tests

Writing and running tests is an important part of any project.

Test files are "linked" to their source file. Say you are working on client/components/home/title.jsx and you want to write tests for it. Create a file: client/components/home/tests/title.jsx.

That file would look something like this:

const { describe, it } = global;
import {expect} from 'chai';
import {shallow} from 'enzyme';
import Title from '../title.jsx';

describe('Home title', () => {
  it('should display the title', () => {
    const title = {title: 'Sustainability Game'};
    const el = shallow(<Title title={title} />);
    expect(el.find('h2').text()).to.be.match(/Sustainability Game/);
  });
});

For more information on writing tests, read:

PRs and Code Reviews

See our code review guidelines.

Documentation

Please see the Wiki for documentation on the development process, links to developer resources, and meeting notes.