Skip to content

Commit

Permalink
Add golden balloon test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonStnn committed Jul 7, 2024
1 parent dcdbdc8 commit bc53ec0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/balloons/gold.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Gold } from '@/balloons';
import fetchMock from 'jest-fetch-mock';

fetchMock.enableMocks();

describe('Gold Balloon', () => {
let balloon: Gold;

beforeEach(() => {
balloon = new Gold();

fetchMock.resetMocks();
});

test('name should be "gold"', () => {
expect(balloon.name).toBe('gold');
});

test('name should be the same as the class name', () => {
expect(balloon.name).toBe('gold');
expect(balloon.name).toBe(Gold.name.toLowerCase());
});
});

0 comments on commit bc53ec0

Please sign in to comment.