Skip to content

Commit

Permalink
Resolve yarn test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbergja committed Feb 27, 2024
1 parent 3668ad0 commit d1cca8e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
8 changes: 7 additions & 1 deletion app/javascript/test/hoursCalculator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ describe("HoursCalculator.vue", () => {
hoursPerDay: 8,
holidays: ['2019-12-25','2019-12-26','2019-09-11','2020-12-25']
},
stubs: ["lux-input-text", "date-picker", "grid-item"]
global: {
stubs: {
"lux-input-text": true,
"lux-date-picker": true,
"lux-grid-item": true
}
}
});
});

Expand Down
11 changes: 3 additions & 8 deletions app/javascript/test/travelEstimateForm.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { mount } from "@vue/test-utils";
import TravelEstimateForm from "../components/travelEstimateForm.vue";
import {LuxInputSelect, LuxGridContainer, LuxGridItem} from "lux-design-system";

let wrapper;
describe("travelEstimateForm.vue", () => {
beforeEach(() => {

wrapper = mount(TravelEstimateForm, {
propsData: {
props: {
expenses: [
{"id":1,"cost_type":"registration","amount":"50.0","recurrence":2,"description":"","other_id":"id_1"},
{"id":2,"cost_type":"meals","amount":"193.0","recurrence":1,"description":"Foo!","other_id":"id_2"}
Expand All @@ -32,13 +31,9 @@ describe("travelEstimateForm.vue", () => {
"lux-grid-container": true,
"lux-grid-item": true,
"lux-text-style": true,
"lux-input-text": true
"lux-input-text": true,
"lux-input-select": true
},
components: {
"lux-input-select": LuxInputSelect,
"lux-grid-container": LuxGridContainer,
"lux-grid-item": LuxGridItem,
}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"dependencies": {
"@rails/ujs": "6.1.7-6",
"lux-design-system": "5.0.0-alpha.12",
"lux-design-system": "^5.0.0-alpha.13",
"postcss-import": "^15.1.0",
"vue": "^3.4.0"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4294,10 +4294,10 @@ lru-cache@^6.0.0:
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.0.3.tgz#b40014d7d2d16d94130b87297a04a1f24874ae7c"
integrity sha512-B7gr+F6MkqB3uzINHXNctGieGsRTMwIBgxkp0yq/5BwcuDzD4A8wQpHQW6vDAm1uKSLQghmRdD9sKqf2vJ1cEg==

[email protected].12:
version "5.0.0-alpha.12"
resolved "https://registry.yarnpkg.com/lux-design-system/-/lux-design-system-5.0.0-alpha.12.tgz#55a9d799686834342a7e0d413cc12f9ddb426722"
integrity sha512-7r8XGUGKtuWaYNca9+UFm+SFj3XbXieRnnORBfQeQXewx6RF64QBc/Lo4otUr7TV4aUpP9Hd9O4EgDW9QV72Dw==
lux-design-system@^5.0.0-alpha.13:
version "5.0.0-alpha.13"
resolved "https://registry.yarnpkg.com/lux-design-system/-/lux-design-system-5.0.0-alpha.13.tgz#79a33e048ceb8e8ba45a6d2bc37781a369da70aa"
integrity sha512-u2+nFl9G1lECdq5EJ9PRl80KkoVEZdsK5hcn8laWno/gUqSQJLKz6QDN+c1ZJ/2BJswDV7mM8DXhEGVz6EgelA==
dependencies:
core-js "^3.8.3"
register-service-worker "^1.7.2"
Expand Down

0 comments on commit d1cca8e

Please sign in to comment.