10000 test: update · rmeltonmi/coreui-vue@9a4df6e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a4df6e

Browse files
committed
test: update
1 parent 4e9859e commit 9a4df6e

File tree

4 files changed

+10
-5
lines changed
  • __snapshots__
  • 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(typeof SidebarNavLabel.computed.classList).toBe('function')
    22-
    })
    23-
    it('has getClasses method', () => {
    24-
    expect(typeof SidebarNavLabel.methods.getClasses).toBe('function')
    22+
    expect(typeof SidebarNavLabel.computed.itemClasses).toBe('function')
    2523
    })
    2624
    it('renders correctly', () => {
    2725
    const wrapper = 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(typeof SidebarNavLink.computed.classList).toBe('function')
    3030
    expect(typeof SidebarNavLink.computed.classIcon).toBe('function')
    3131
    expect(typeof SidebarNavLink.computed.linkVariant).toBe('function')
    32+
    expect(typeof SidebarNavLink.computed.attrClasses).toBe('function')
    3233
    expect(typeof SidebarNavLink.computed.itemClasses).toBe('function')
    34+
    expect(typeof SidebarNavLink.computed.disabledClasses).toBe('function')
    35+
    expect(typeof SidebarNavLink.computed.isDisabled).toBe('function')
    3336
    expect(typeof SidebarNavLink.computed.isExternalLink).toBe('function')
    3437
    })
    38+
    it('has getClassArray method', () => {
    39+
    expect(typeof SidebarNavLink.methods.getClassArray).toBe('function')
    40+
    })
    3541
    it('renders correctly', () => {
    3642
    const wrapper = 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)
    0