exercism/exercism.io — pull request #1403 by ScottDalessandro (2014-02-19 19:09:46+00:00)
Title: Reversed the Test Syntax

Many other tests in the JavaScript track pass the expect() function a value based on the written code by the user in their js file. The toEqual() function is normally passed a hard-coded value, pre-determined when the test was written..

This test reversed the pattern, passing expect the hard-coded values and toEqual() the value of the users code written in their js file.

I was helping a friend with this problem and he was confused with the test. When I re-wrote the test for him in this format (the format he was used to based on previous tests) it made a lot more sense to him.

Hope this helps!