Commit Graph

3 Commits

Author SHA1 Message Date
e-cloud 462b329b1e fix: remove unreasonable comparelocation logic and update test cases
What the `compareLocations` function compares are SourceLocation objects
or strings(based on current usage). There is no case to assume the input
are position objects. Therefore, remove the useless and unreasonable
code.

Relatively, update the tests to indicate the actual usage.
2017-01-24 18:47:55 +08:00
Shubheksha Jalan 90acdfa6cb refactor(ES6): compareLocations.test.js 2017-01-17 21:47:54 +05:30
Alistair Brown f7060eaf1e Add tests for compareLocations 2017-01-01 23:38:59 +00:00