Change to "color" to "colour"
This commit is contained in:
@@ -5,25 +5,25 @@ import GetTimeColour from '../../src/Disp/BeautifyAndFormatting/GetTimeColour';
|
||||
|
||||
describe('GetTimeColour', () => {
|
||||
it('Format when time is less than 60', () => {
|
||||
expect(GetTimeColour(59).color).to.deep.equal('Yellow');
|
||||
expect(GetTimeColour(59).colour).to.deep.equal('Yellow');
|
||||
});
|
||||
it('Format when time is more than 60', () => {
|
||||
expect(GetTimeColour(61).color).to.deep.equal('Orange');
|
||||
expect(GetTimeColour(61).colour).to.deep.equal('Orange');
|
||||
});
|
||||
it('Format when time is more than 300', () => {
|
||||
expect(GetTimeColour(301).color).to.deep.equal('Red');
|
||||
expect(GetTimeColour(301).colour).to.deep.equal('Red');
|
||||
});
|
||||
describe('TimeFormat = 0', () => {
|
||||
before(() => {
|
||||
Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.TimeFormat = 0;
|
||||
});
|
||||
it('Format when time is 0', () => {
|
||||
expect(GetTimeColour(0)).to.deep.equal({ text: 'Done!', color: 'Green' });
|
||||
expect(GetTimeColour(0)).to.deep.equal({ text: 'Done!', colour: 'Green' });
|
||||
});
|
||||
it('Format when time is negative', () => {
|
||||
expect(GetTimeColour(-1)).to.deep.equal({
|
||||
text: 'Done!',
|
||||
color: 'Green',
|
||||
colour: 'Green',
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -34,13 +34,13 @@ describe('GetTimeColour', () => {
|
||||
it('Format when time is 0', () => {
|
||||
expect(GetTimeColour(0)).to.deep.equal({
|
||||
text: '00:00:00:00:00',
|
||||
color: 'Green',
|
||||
colour: 'Green',
|
||||
});
|
||||
});
|
||||
it('Format when time is negative', () => {
|
||||
expect(GetTimeColour(-1)).to.deep.equal({
|
||||
text: '00:00:00:00:00',
|
||||
color: 'Green',
|
||||
colour: 'Green',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user