Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Releases: kaliber5/ember-fastboot-addon-tests

ember-data-version

26 Nov 21:59
Compare
Choose a tag to compare
  • supports specifying the used ember-data version

Update dependencies, drop node 4

04 Oct 09:03
Compare
Choose a tag to compare

v0.3.0

02 Apr 09:25
Compare
Choose a tag to compare
  • added ember fastboot:serve command to directly run your FastBoot test app

v0.2.0

19 Feb 12:24
Compare
Choose a tag to compare
  • fixed nested route blueprint
  • added --app-name option to fastboot-test blueprint to generate test for different test app
  • support adding additional packages to test app

BREAKING CHANGES

  • Visit helper does not implicitly test for response status code of 200 anymore.
    You have to add that assertions to your own tests where needed.
  • Setup of tests changed, you have to call setupTest inside your describe function

Before:

var expect = require('chai').expect;

describe('index', function() {

  it('renders', function() {
    return this.visit('/')
      .then(function(res) {
        var $ = res.jQuery;
        // var response = res.response;

        // add your real tests here
        expect($('body').length).to.equal(1);
        expect($('h1').text().trim()).to.equal('ember-fastboot-addon-tests');
      });
  });

});

After:

const expect = require('chai').expect;
const setupTest = require('ember-fastboot-addon-tests').setupTest;

describe('index', function() {
  setupTest('fastboot'/*, options */);

  it('renders', function() {
    return this.visit('/')
      .then(function(res) {
        let $ = res.jQuery;
        let response = res.response;

        // add your real tests here
        expect(response.statusCode).to.equal(200);
        expect($('body').length).to.equal(1);
        expect($('h1').text().trim()).to.equal('ember-fastboot-addon-tests');
      });
  });

});