NorbertNader / ember-task

fix app to make tests pass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember.js - Front End Developer Exercises

This application contains three distinct exercises, each with multiple sub tasks. Each sub task has a corresponding unit test that will pass upon successful implementation.

While a unit test will confirm the correct result, there are multiple ways to complete almost every task. It is recommended to follow Ember.js conventions where appropriate, and avoid using any additional libraries such as jquery, underscore.js, etc.

Each task makes heavy use of ember components, so you are encouraged to review ember component documentation to better understand the component lifecycle and the many methods, properties, and events that the ember framework provides.

Ember Component Documentation

Prerequisites

You will need the following things properly installed on your computer:

Installation

You will need to set up and install the project dependencies:

  • npm install -g ember-cli@2.12.0 to install the ember command line tools
  • npm install -g phantomjs@2.1 to install the phantomjs, for running unit tests
  • cd frontend_platform_interview
  • npm install

Running / Development

  • cd rs-fed-interview
  • ember serve
  • Visit the app at http://localhost:4200 to begin the exercises.
  • View unit and integration test results at http://localhost:4200/tests
  • If you are unable to get all tests passing, but think your solution is correct, or are unsure how to proceed, you can still submit your solution, but please include a description of the problems you are facing with your submission.

Submitting your code

Send your changed files to your hiring contact at RedShelf in .zip file containing the following two directories:

  • frontend_platform_interview/app
  • frontend_platform_interview/tests

You do not need to include any of the other directories in your submission.

Further Reading / Useful Links

Solution remarks

Almost all tests passed beside 'it returns to full size after clicking the small box'. It won't pass because of the transition, the assertion happens right after the click, so we would either have to timeout or - what I personally think would be a better solution - disable transitions in the test environment.

About

fix app to make tests pass

License:MIT License


Languages

Language:JavaScript 65.5%Language:HTML 28.2%Language:CSS 6.3%