mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 12:35:15 +00:00
16 lines
588 B
TypeScript
16 lines
588 B
TypeScript
import ProfitSymbol from '@/components/general/ProfitSymbol.vue';
|
|
|
|
describe('ProfitSymbol.vue', () => {
|
|
it('calculates isProfitable with negative profit', () => {
|
|
cy.mount(ProfitSymbol, { props: { profit: -0.5 } });
|
|
|
|
cy.get('div').should('have.class', 'triangle-down');
|
|
cy.get('div').should('not.have.class', 'triangle-up');
|
|
});
|
|
it('calculates isProfitable with positive profit', () => {
|
|
cy.mount(ProfitSymbol, { props: { profit: 0.5 } });
|
|
cy.get('div').should('have.class', 'triangle-up');
|
|
cy.get('div').should('not.have.class', 'triangle-down');
|
|
});
|
|
});
|