Merge pull request #267 from Safelite/brm-qa-updates
Add unit test and fix link issue for Bindu.
This commit is contained in:
commit
238bc5e978
2 changed files with 19 additions and 2 deletions
|
|
@ -1 +1,18 @@
|
||||||
test.todo("some test to be written in the future");
|
import { shallowMount } from "@vue/test-utils";
|
||||||
|
import vinInformation from "@/common-components/vin-information/vin-information";
|
||||||
|
|
||||||
|
describe("vinInformation.vue", () => {
|
||||||
|
it("Should return input class active if isActive is true", async () => {
|
||||||
|
// Act
|
||||||
|
const wrapper = shallowMount(vinInformation);
|
||||||
|
|
||||||
|
await wrapper.setData({
|
||||||
|
isActive: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
// Assert
|
||||||
|
wrapper.vm.toggleClass()
|
||||||
|
|
||||||
|
expect(wrapper.vm.isActive).toEqual(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ export default {
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
a {
|
a {
|
||||||
|
display: inline-flex !important;
|
||||||
color: $blue;
|
color: $blue;
|
||||||
text-underline-offset: 0.5em;
|
text-underline-offset: 0.5em;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
|
|
@ -42,7 +43,6 @@ a {
|
||||||
&.navigation-link {
|
&.navigation-link {
|
||||||
color: $black;
|
color: $black;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
display: inline-flex;
|
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue