mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Merge pull request #252 from freqtrade/dependabot/npm_and_yarn/master/vue/test-utils-1.1.3
Bump @vue/test-utils from 1.1.2 to 1.1.3
This commit is contained in:
commit
836c8e719a
|
@ -44,7 +44,7 @@
|
||||||
"@vue/eslint-config-airbnb": "^5.1.0",
|
"@vue/eslint-config-airbnb": "^5.1.0",
|
||||||
"@vue/eslint-config-prettier": "^6.0.0",
|
"@vue/eslint-config-prettier": "^6.0.0",
|
||||||
"@vue/eslint-config-typescript": "^5.1.0",
|
"@vue/eslint-config-typescript": "^5.1.0",
|
||||||
"@vue/test-utils": "^1.1.2",
|
"@vue/test-utils": "^1.1.3",
|
||||||
"eslint": "^6.7.2",
|
"eslint": "^6.7.2",
|
||||||
"eslint-config-airbnb": "^18.2.1",
|
"eslint-config-airbnb": "^18.2.1",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^3.3.1",
|
||||||
|
|
|
@ -9,22 +9,20 @@ describe('ProfitSymbol.vue', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cmp = mount(ProfitSymbol, { propsData: { trade: {} } });
|
cmp = mount(ProfitSymbol, { propsData: { trade: {} } });
|
||||||
});
|
});
|
||||||
it('calculates isProfitable with negative profit', () => {
|
it('calculates isProfitable with negative profit', async () => {
|
||||||
const trade = {
|
const trade = {
|
||||||
profit_ratio: -0.5,
|
profit_ratio: -0.5,
|
||||||
};
|
};
|
||||||
cmp.setProps({ trade });
|
cmp.setProps({ trade });
|
||||||
|
await Vue.nextTick();
|
||||||
expect(cmp.vm.isProfitable).toBe(false);
|
expect(cmp.vm.isProfitable).toBe(false);
|
||||||
});
|
});
|
||||||
it('calculates isProfitable with positive profit', () => {
|
it('calculates isProfitable with positive profit', async () => {
|
||||||
const trade = {
|
const trade = {
|
||||||
close_profit: 0.5,
|
|
||||||
current_profit: 0.5,
|
|
||||||
profit_ratio: 0.5,
|
profit_ratio: 0.5,
|
||||||
};
|
};
|
||||||
cmp.setProps({ trade });
|
cmp.setProps({ trade });
|
||||||
|
await Vue.nextTick();
|
||||||
expect(cmp.vm.isProfitable).toBe(true);
|
expect(cmp.vm.isProfitable).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1980,10 +1980,10 @@
|
||||||
resolved "https://registry.yarnpkg.com/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz#ceb924b4ecb3b9c43871c7a429a02f8423e621ab"
|
resolved "https://registry.yarnpkg.com/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz#ceb924b4ecb3b9c43871c7a429a02f8423e621ab"
|
||||||
integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==
|
integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==
|
||||||
|
|
||||||
"@vue/test-utils@^1.1.2":
|
"@vue/test-utils@^1.1.3":
|
||||||
version "1.1.2"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.2.tgz#fdb487448dceefeaf3d01d465f7c836a3d666dbc"
|
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.3.tgz#747f5683d8d4633c85a385fe2e02c1bb35bec153"
|
||||||
integrity sha512-utbIL7zn9c+SjhybPwh48lpWCiluFCbP1yyRNAy1fQsw/6hiNFioaWy05FoVAFIZXC5WwBf+5r4ypfM1j/nI4A==
|
integrity sha512-BAY1Cwe9JpkJseimC295EW3YlAmgIJI9OPkg2FSP62+PHZooB0B+wceDi9TYyU57oqzL0yLbcP73JKFpKiLc9A==
|
||||||
dependencies:
|
dependencies:
|
||||||
dom-event-types "^1.0.0"
|
dom-event-types "^1.0.0"
|
||||||
lodash "^4.17.15"
|
lodash "^4.17.15"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user