Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a4df6e

Browse files
committed
test: update
1 parent4e9859e commit9a4df6e

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

‎jest.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
coverageDirectory:"<rootDir>/coverage",
1313
collectCoverageFrom:[
1414
"src/**/*.{js,vue}",
15+
"!src/components/index.js",
1516
"!src/index.umd.js",
1617
"!**/node_modules/**"
1718
]

‎src/components/__tests__/SidebarNavLabel.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ describe("SidebarNavLabel.vue", () => {
1919
});
2020
it('has hasSlotDefault computed property',()=>{
2121
expect(typeofSidebarNavLabel.computed.classList).toBe('function')
22-
})
23-
it('has getClasses method',()=>{
24-
expect(typeofSidebarNavLabel.methods.getClasses).toBe('function')
22+
expect(typeofSidebarNavLabel.computed.itemClasses).toBe('function')
2523
})
2624
it('renders correctly',()=>{
2725
constwrapper=mount(SidebarNavLabel,{

‎src/components/__tests__/SidebarNavLink.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ describe("SidebarNavLink.vue", () => {
2929
expect(typeofSidebarNavLink.computed.classList).toBe('function')
3030
expect(typeofSidebarNavLink.computed.classIcon).toBe('function')
3131
expect(typeofSidebarNavLink.computed.linkVariant).toBe('function')
32+
expect(typeofSidebarNavLink.computed.attrClasses).toBe('function')
3233
expect(typeofSidebarNavLink.computed.itemClasses).toBe('function')
34+
expect(typeofSidebarNavLink.computed.disabledClasses).toBe('function')
35+
expect(typeofSidebarNavLink.computed.isDisabled).toBe('function')
3336
expect(typeofSidebarNavLink.computed.isExternalLink).toBe('function')
3437
})
38+
it('has getClassArray method',()=>{
39+
expect(typeofSidebarNavLink.methods.getClassArray).toBe('function')
40+
})
3541
it('renders correctly',()=>{
3642
constwrapper=shallowMount(SidebarNavLink,{ localVue, router})
3743
expect(wrapper.element).toMatchSnapshot()

‎src/components/__tests__/__snapshots__/HeaderDropdown.js.snap‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`HeaderDropdown.vue renders correctly 1`]=`
4-
<b-nav-item-dropdown>
4+
<b-nav-item-dropdown-stub>
55
<template>
66
77
@@ -17,5 +17,5 @@ exports[`HeaderDropdown.vue renders correctly 1`] = `
1717
dropdown
1818
</span>
1919
</div>
20-
</b-nav-item-dropdown>
20+
</b-nav-item-dropdown-stub>
2121
`;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp