Add unit test and fix link issue for Bindu.
This commit is contained in:
parent
440cc39b34
commit
2149321103
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">
|
||||
a {
|
||||
display: inline-flex !important;
|
||||
color: $blue;
|
||||
text-underline-offset: 0.5em;
|
||||
line-height: 26px;
|
||||
|
|
@ -42,7 +43,6 @@ a {
|
|||
&.navigation-link {
|
||||
color: $black;
|
||||
line-height: 26px;
|
||||
display: inline-flex;
|
||||
text-transform: capitalize;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue