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:
Matthias 2021-02-08 10:55:51 +01:00 committed by GitHub
commit 836c8e719a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 11 deletions

View File

@ -44,7 +44,7 @@
"@vue/eslint-config-airbnb": "^5.1.0",
"@vue/eslint-config-prettier": "^6.0.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-config-airbnb": "^18.2.1",
"eslint-plugin-prettier": "^3.3.1",

View File

@ -9,22 +9,20 @@ describe('ProfitSymbol.vue', () => {
beforeEach(() => {
cmp = mount(ProfitSymbol, { propsData: { trade: {} } });
});
it('calculates isProfitable with negative profit', () => {
it('calculates isProfitable with negative profit', async () => {
const trade = {
profit_ratio: -0.5,
};
cmp.setProps({ trade });
await Vue.nextTick();
expect(cmp.vm.isProfitable).toBe(false);
});
it('calculates isProfitable with positive profit', () => {
it('calculates isProfitable with positive profit', async () => {
const trade = {
close_profit: 0.5,
current_profit: 0.5,
profit_ratio: 0.5,
};
cmp.setProps({ trade });
await Vue.nextTick();
expect(cmp.vm.isProfitable).toBe(true);
});

View File

@ -1980,10 +1980,10 @@
resolved "https://registry.yarnpkg.com/@vue/preload-webpack-plugin/-/preload-webpack-plugin-1.1.2.tgz#ceb924b4ecb3b9c43871c7a429a02f8423e621ab"
integrity sha512-LIZMuJk38pk9U9Ur4YzHjlIyMuxPlACdBIHH9/nGYVTsaGKOSnSuELiE8vS9wa+dJpIYspYUOqk+L1Q4pgHQHQ==
"@vue/test-utils@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.2.tgz#fdb487448dceefeaf3d01d465f7c836a3d666dbc"
integrity sha512-utbIL7zn9c+SjhybPwh48lpWCiluFCbP1yyRNAy1fQsw/6hiNFioaWy05FoVAFIZXC5WwBf+5r4ypfM1j/nI4A==
"@vue/test-utils@^1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.1.3.tgz#747f5683d8d4633c85a385fe2e02c1bb35bec153"
integrity sha512-BAY1Cwe9JpkJseimC295EW3YlAmgIJI9OPkg2FSP62+PHZooB0B+wceDi9TYyU57oqzL0yLbcP73JKFpKiLc9A==
dependencies:
dom-event-types "^1.0.0"
lodash "^4.17.15"