fix: in can connect test mock underlying axios instance's get method

This commit is contained in:
StevanFreeborn
2023-01-27 22:21:38 -06:00
parent cad208cd4c
commit fa1a952cb2
5 changed files with 212 additions and 7 deletions
+11
View File
@@ -17,4 +17,15 @@ describe('App', function () {
it('should create a new instance of the App class', function () {
expect(() => new App('href', 1, 'name')).to.not.throw();
});
it('should create a new instance of the App class with the correct properties and values', function () {
const app = new App('href', 1, 'name');
expect(app).to.have.property('href');
expect(app).to.have.property('id');
expect(app).to.have.property('name');
expect(app.href).to.equal('href');
expect(app.id).to.equal(1);
expect(app.name).to.equal('name');
});
});