Skip to content

Commit

Permalink
Adding in the chai test to the test file that is being read
Browse files Browse the repository at this point in the history
  • Loading branch information
eHag-FRU committed Apr 18, 2024
1 parent 768d5e7 commit 18a8b98
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
31 changes: 29 additions & 2 deletions tests/selenium/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
"use strict"
import * as chai from 'chai';


console.log("This works :)")
function playerCreation() {
let testPlayer = Player.setupPlayer();

describe("Player", function() {
describe("#Constructing a new player", function() {
it('should be of type Sprite');
expect(testPlayer).to.be.type('Sprite');

it('should have a colider of dynamic to interact with the world');
expect(testPlayer.collide()).to.equal('dynamic');

it ('should have 101 health');
expect(testPlayer.health).to.equal(101);
});

describe("#Setting up bullets for gun to attack", function () {
setUpBullets();

it("should look like a bullet");
expect(bullets.image).to.equal("assets/bullet.png");


});

});
}

playerCreation();
3 changes: 2 additions & 1 deletion tests/selenium/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def test_wikipedia_CPP_results():
wholeJSCode = f.read()
print(wholeJSCode)


browser.execute_script(wholeJSCode)
#test_wikipedia_python_results()
#test_wikipedia_CPP_results()
print("done.")
print("done.")

0 comments on commit 18a8b98

Please sign in to comment.