Skip to content

Commit

Permalink
testing ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuredra committed Sep 23, 2023
1 parent a226b1e commit 8e8280c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 44 deletions.
5 changes: 5 additions & 0 deletions JavaScript/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-env"
]
}
38 changes: 19 additions & 19 deletions JavaScript/Classes/test/Shape.test.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import Shape from '../Shape'
describe('Shape', () => {
it('should have correct initial position', () => {
const myShape = new Shape(10, 20);
expect(myShape.getX()).toBe(10);
expect(myShape.getY()).toBe(20);
});
const myShape = new Shape(10, 20)
expect(myShape.getX()).toBe(10)
expect(myShape.getY()).toBe(20)
})

it('should be able to move and update position', () => {
const myShape = new Shape(10, 20);
myShape.move(30, 40);
expect(myShape.getX()).toBe(30);
expect(myShape.getY()).toBe(40);
});
const myShape = new Shape(10, 20)
myShape.move(30, 40)
expect(myShape.getX()).toBe(30)
expect(myShape.getY()).toBe(40)
})

it('should create another shape with the correct initial position', () => {
const anotherShape = new Shape(5, 8);
expect(anotherShape.getX()).toBe(5);
expect(anotherShape.getY()).toBe(8);
});
const anotherShape = new Shape(5, 8)
expect(anotherShape.getX()).toBe(5)
expect(anotherShape.getY()).toBe(8)
})

it('should be able to move another shape and update position', () => {
const anotherShape = new Shape(5, 8);
anotherShape.move(15, 25);
expect(anotherShape.getX()).toBe(15);
expect(anotherShape.getY()).toBe(25);
});
});
const anotherShape = new Shape(5, 8)
anotherShape.move(15, 25)
expect(anotherShape.getX()).toBe(15)
expect(anotherShape.getY()).toBe(25)
})
})
12 changes: 0 additions & 12 deletions JavaScript/babel.config.cjs

This file was deleted.

13 changes: 0 additions & 13 deletions sonar-project.properties

This file was deleted.

0 comments on commit 8e8280c

Please sign in to comment.