Skip to content
Snippets Groups Projects
Commit c867f689 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

fixed basic test

parent 30e28ca9
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ export default class Point {
this.y = y;
}
isEqual(x, y) {
return x === this.x && y === this.y;
isEqual(point) {
return point.x === this.x && point.y === this.y;
}
}
\ No newline at end of file
......@@ -6,8 +6,6 @@ module('Unit | Point', function () {
test('basic', function (assert) {
let p1 = new Point(1, 1), p2 = new Point(1, 1);
assert.true(p1.x === p2.x, 'X are not equal');
assert.true(p1.y === p2.y, 'Y are not equal');
assert.true(
p1.isEqual(p2)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment