mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-06 14:30:46 +08:00
test: add scaffold for all components
This commit is contained in:
parent
3d42fc06e3
commit
f0893770ee
@ -19,6 +19,7 @@ const _ = require('lodash')
|
||||
|
||||
async function generateImportOnDemandTest (name) {
|
||||
const styleVarName = `${_.camelCase(name)}Light`
|
||||
const testFileName = `${_.upperFirst(_.camelCase(name))}.spec.js`
|
||||
const compVarName = `N${_.upperFirst(_.camelCase(name))}`
|
||||
const script = `import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
@ -50,5 +51,5 @@ describe('n-${name}', () => {
|
||||
} else {
|
||||
await fs.mkdir(path.resolve(__dirname, '../src/', name, 'tests'))
|
||||
}
|
||||
await fs.writeFile(path.resolve(__dirname, '../src/', name, 'tests', 'index.spec.js'), script)
|
||||
await fs.writeFile(path.resolve(__dirname, '../src/', name, 'tests', testFileName), script)
|
||||
}
|
||||
|
23
src/anchor/tests/Anchor.spec.js
Normal file
23
src/anchor/tests/Anchor.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { anchorLight } from '../styles'
|
||||
import { NAnchor } from '../index'
|
||||
|
||||
describe('n-anchor', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
anchorLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NAnchor, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/auto-complete/tests/AutoComplete.spec.js
Normal file
23
src/auto-complete/tests/AutoComplete.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { autoCompleteLight } from '../styles'
|
||||
import { NAutoComplete } from '../index'
|
||||
|
||||
describe('n-auto-complete', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
autoCompleteLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NAutoComplete, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/avatar/tests/Avatar.spec.js
Normal file
23
src/avatar/tests/Avatar.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { avatarLight } from '../styles'
|
||||
import { NAvatar } from '../index'
|
||||
|
||||
describe('n-avatar', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
avatarLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NAvatar, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/back-top/tests/BackTop.spec.js
Normal file
23
src/back-top/tests/BackTop.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { backTopLight } from '../styles'
|
||||
import { NBackTop } from '../index'
|
||||
|
||||
describe('n-back-top', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
backTopLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NBackTop, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/badge/tests/Badge.spec.js
Normal file
23
src/badge/tests/Badge.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { badgeLight } from '../styles'
|
||||
import { NBadge } from '../index'
|
||||
|
||||
describe('n-badge', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
badgeLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NBadge, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/breadcrumb/tests/Breadcrumb.spec.js
Normal file
23
src/breadcrumb/tests/Breadcrumb.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { breadcrumbLight } from '../styles'
|
||||
import { NBreadcrumb } from '../index'
|
||||
|
||||
describe('n-breadcrumb', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
breadcrumbLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NBreadcrumb, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/button-group/tests/ButtonGroup.spec.js
Normal file
23
src/button-group/tests/ButtonGroup.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { buttonGroupLight } from '../styles'
|
||||
import { NButtonGroup } from '../index'
|
||||
|
||||
describe('n-button-group', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
buttonGroupLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NButtonGroup, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/button/tests/Button.spec.js
Normal file
23
src/button/tests/Button.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { buttonLight } from '../styles'
|
||||
import { NButton } from '../index'
|
||||
|
||||
describe('n-button', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
buttonLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NButton, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/card/tests/Card.spec.js
Normal file
23
src/card/tests/Card.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { cardLight } from '../styles'
|
||||
import { NCard } from '../index'
|
||||
|
||||
describe('n-card', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
cardLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NCard, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/cascader/tests/Cascader.spec.js
Normal file
23
src/cascader/tests/Cascader.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { cascaderLight } from '../styles'
|
||||
import { NCascader } from '../index'
|
||||
|
||||
describe('n-cascader', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
cascaderLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NCascader, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/checkbox/tests/Checkbox.spec.js
Normal file
23
src/checkbox/tests/Checkbox.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { checkboxLight } from '../styles'
|
||||
import { NCheckbox } from '../index'
|
||||
|
||||
describe('n-checkbox', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
checkboxLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NCheckbox, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/code/tests/Code.spec.js
Normal file
23
src/code/tests/Code.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { codeLight } from '../styles'
|
||||
import { NCode } from '../index'
|
||||
|
||||
describe('n-code', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
codeLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NCode, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/collapse/tests/Collapse.spec.js
Normal file
23
src/collapse/tests/Collapse.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { collapseLight } from '../styles'
|
||||
import { NCollapse } from '../index'
|
||||
|
||||
describe('n-collapse', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
collapseLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NCollapse, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/config-consumer/tests/ConfigConsumer.spec.js
Normal file
23
src/config-consumer/tests/ConfigConsumer.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { configConsumerLight } from '../styles'
|
||||
import { NConfigConsumer } from '../index'
|
||||
|
||||
describe('n-config-consumer', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
configConsumerLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NConfigConsumer, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/config-provider/tests/ConfigProvider.spec.js
Normal file
23
src/config-provider/tests/ConfigProvider.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { configProviderLight } from '../styles'
|
||||
import { NConfigProvider } from '../index'
|
||||
|
||||
describe('n-config-provider', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
configProviderLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NConfigProvider, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/data-table/tests/DataTable.spec.js
Normal file
23
src/data-table/tests/DataTable.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { dataTableLight } from '../styles'
|
||||
import { NDataTable } from '../index'
|
||||
|
||||
describe('n-data-table', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
dataTableLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDataTable, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/date-picker/tests/DatePicker.spec.js
Normal file
23
src/date-picker/tests/DatePicker.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { datePickerLight } from '../styles'
|
||||
import { NDatePicker } from '../index'
|
||||
|
||||
describe('n-date-picker', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
datePickerLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDatePicker, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/descriptions/tests/Descriptions.spec.js
Normal file
23
src/descriptions/tests/Descriptions.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { descriptionsLight } from '../styles'
|
||||
import { NDescriptions } from '../index'
|
||||
|
||||
describe('n-descriptions', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
descriptionsLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDescriptions, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/dialog/tests/Dialog.spec.js
Normal file
23
src/dialog/tests/Dialog.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { dialogLight } from '../styles'
|
||||
import { NDialog } from '../index'
|
||||
|
||||
describe('n-dialog', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
dialogLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDialog, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/divider/tests/Divider.spec.js
Normal file
23
src/divider/tests/Divider.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { dividerLight } from '../styles'
|
||||
import { NDivider } from '../index'
|
||||
|
||||
describe('n-divider', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
dividerLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDivider, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/drawer/tests/Drawer.spec.js
Normal file
23
src/drawer/tests/Drawer.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { drawerLight } from '../styles'
|
||||
import { NDrawer } from '../index'
|
||||
|
||||
describe('n-drawer', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
drawerLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDrawer, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/dropdown/tests/Dropdown.spec.js
Normal file
23
src/dropdown/tests/Dropdown.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { dropdownLight } from '../styles'
|
||||
import { NDropdown } from '../index'
|
||||
|
||||
describe('n-dropdown', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
dropdownLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDropdown, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/dynamic-input/tests/DynamicInput.spec.js
Normal file
23
src/dynamic-input/tests/DynamicInput.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { dynamicInputLight } from '../styles'
|
||||
import { NDynamicInput } from '../index'
|
||||
|
||||
describe('n-dynamic-input', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
dynamicInputLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDynamicInput, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/dynamic-tags/tests/DynamicTags.spec.js
Normal file
23
src/dynamic-tags/tests/DynamicTags.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { dynamicTagsLight } from '../styles'
|
||||
import { NDynamicTags } from '../index'
|
||||
|
||||
describe('n-dynamic-tags', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
dynamicTagsLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NDynamicTags, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/element/tests/Element.spec.js
Normal file
23
src/element/tests/Element.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { elementLight } from '../styles'
|
||||
import { NElement } from '../index'
|
||||
|
||||
describe('n-element', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
elementLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NElement, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/empty/tests/Empty.spec.js
Normal file
23
src/empty/tests/Empty.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { emptyLight } from '../styles'
|
||||
import { NEmpty } from '../index'
|
||||
|
||||
describe('n-empty', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
emptyLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NEmpty, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/form/tests/Form.spec.js
Normal file
23
src/form/tests/Form.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { formLight } from '../styles'
|
||||
import { NForm } from '../index'
|
||||
|
||||
describe('n-form', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
formLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NForm, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/gradient-text/tests/GradientText.spec.js
Normal file
23
src/gradient-text/tests/GradientText.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { gradientTextLight } from '../styles'
|
||||
import { NGradientText } from '../index'
|
||||
|
||||
describe('n-gradient-text', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
gradientTextLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NGradientText, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/grid/tests/Grid.spec.js
Normal file
23
src/grid/tests/Grid.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { gridLight } from '../styles'
|
||||
import { NGrid } from '../index'
|
||||
|
||||
describe('n-grid', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
gridLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NGrid, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/icon/tests/Icon.spec.js
Normal file
23
src/icon/tests/Icon.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { iconLight } from '../styles'
|
||||
import { NIcon } from '../index'
|
||||
|
||||
describe('n-icon', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
iconLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NIcon, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/input-group-label/tests/InputGroupLabel.spec.js
Normal file
23
src/input-group-label/tests/InputGroupLabel.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { inputGroupLabelLight } from '../styles'
|
||||
import { NInputGroupLabel } from '../index'
|
||||
|
||||
describe('n-input-group-label', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
inputGroupLabelLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NInputGroupLabel, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/input-group/tests/InputGroup.spec.js
Normal file
23
src/input-group/tests/InputGroup.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { inputGroupLight } from '../styles'
|
||||
import { NInputGroup } from '../index'
|
||||
|
||||
describe('n-input-group', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
inputGroupLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NInputGroup, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/input-number/tests/InputNumber.spec.js
Normal file
23
src/input-number/tests/InputNumber.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { inputNumberLight } from '../styles'
|
||||
import { NInputNumber } from '../index'
|
||||
|
||||
describe('n-input-number', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
inputNumberLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NInputNumber, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/input/tests/Input.spec.js
Normal file
23
src/input/tests/Input.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { inputLight } from '../styles'
|
||||
import { NInput } from '../index'
|
||||
|
||||
describe('n-input', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
inputLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NInput, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/layout/tests/Layout.spec.js
Normal file
23
src/layout/tests/Layout.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { layoutLight } from '../styles'
|
||||
import { NLayout } from '../index'
|
||||
|
||||
describe('n-layout', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
layoutLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NLayout, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/list/tests/List.spec.js
Normal file
23
src/list/tests/List.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { listLight } from '../styles'
|
||||
import { NList } from '../index'
|
||||
|
||||
describe('n-list', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
listLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NList, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/loading-bar/tests/LoadingBar.spec.js
Normal file
23
src/loading-bar/tests/LoadingBar.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { loadingBarLight } from '../styles'
|
||||
import { NLoadingBar } from '../index'
|
||||
|
||||
describe('n-loading-bar', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
loadingBarLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NLoadingBar, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/log/tests/Log.spec.js
Normal file
23
src/log/tests/Log.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { logLight } from '../styles'
|
||||
import { NLog } from '../index'
|
||||
|
||||
describe('n-log', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
logLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NLog, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/menu/tests/Menu.spec.js
Normal file
23
src/menu/tests/Menu.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { menuLight } from '../styles'
|
||||
import { NMenu } from '../index'
|
||||
|
||||
describe('n-menu', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
menuLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NMenu, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/message/tests/Message.spec.js
Normal file
23
src/message/tests/Message.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { messageLight } from '../styles'
|
||||
import { NMessage } from '../index'
|
||||
|
||||
describe('n-message', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
messageLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NMessage, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/modal/tests/Modal.spec.js
Normal file
23
src/modal/tests/Modal.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { modalLight } from '../styles'
|
||||
import { NModal } from '../index'
|
||||
|
||||
describe('n-modal', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
modalLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NModal, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/notification/tests/Notification.spec.js
Normal file
23
src/notification/tests/Notification.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { notificationLight } from '../styles'
|
||||
import { NNotification } from '../index'
|
||||
|
||||
describe('n-notification', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
notificationLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NNotification, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
@ -1,8 +1,8 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { NPagination } from '../index'
|
||||
import { paginationLight } from '../styles'
|
||||
import { NPagination } from '../index'
|
||||
|
||||
describe('n-pagination', () => {
|
||||
const naive = create({
|
||||
@ -13,22 +13,11 @@ describe('n-pagination', () => {
|
||||
paginationLight
|
||||
]
|
||||
})
|
||||
describe('props.page', () => {
|
||||
it('should work', () => {
|
||||
const wrapper = mount(NPagination, {
|
||||
props: {
|
||||
page: 5,
|
||||
pageCount: 10
|
||||
},
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
expect(
|
||||
wrapper
|
||||
.find('.n-pagination-item--active')
|
||||
.text()
|
||||
).toEqual('5')
|
||||
it('should work with import on demand', () => {
|
||||
mount(NPagination, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
23
src/popconfirm/tests/Popconfirm.spec.js
Normal file
23
src/popconfirm/tests/Popconfirm.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { popconfirmLight } from '../styles'
|
||||
import { NPopconfirm } from '../index'
|
||||
|
||||
describe('n-popconfirm', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
popconfirmLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NPopconfirm, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/popover/tests/Popover.spec.js
Normal file
23
src/popover/tests/Popover.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { popoverLight } from '../styles'
|
||||
import { NPopover } from '../index'
|
||||
|
||||
describe('n-popover', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
popoverLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NPopover, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/popselect/tests/Popselect.spec.js
Normal file
23
src/popselect/tests/Popselect.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { popselectLight } from '../styles'
|
||||
import { NPopselect } from '../index'
|
||||
|
||||
describe('n-popselect', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
popselectLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NPopselect, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/progress/tests/Progress.spec.js
Normal file
23
src/progress/tests/Progress.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { progressLight } from '../styles'
|
||||
import { NProgress } from '../index'
|
||||
|
||||
describe('n-progress', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
progressLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NProgress, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/radio/tests/Radio.spec.js
Normal file
23
src/radio/tests/Radio.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { radioLight } from '../styles'
|
||||
import { NRadio } from '../index'
|
||||
|
||||
describe('n-radio', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
radioLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NRadio, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/rate/tests/Rate.spec.js
Normal file
23
src/rate/tests/Rate.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { rateLight } from '../styles'
|
||||
import { NRate } from '../index'
|
||||
|
||||
describe('n-rate', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
rateLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NRate, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/result/tests/Result.spec.js
Normal file
23
src/result/tests/Result.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { resultLight } from '../styles'
|
||||
import { NResult } from '../index'
|
||||
|
||||
describe('n-result', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
resultLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NResult, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/scrollbar/tests/Scrollbar.spec.js
Normal file
23
src/scrollbar/tests/Scrollbar.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { scrollbarLight } from '../styles'
|
||||
import { NScrollbar } from '../index'
|
||||
|
||||
describe('n-scrollbar', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
scrollbarLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NScrollbar, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/select/tests/Select.spec.js
Normal file
23
src/select/tests/Select.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { selectLight } from '../styles'
|
||||
import { NSelect } from '../index'
|
||||
|
||||
describe('n-select', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
selectLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NSelect, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/slider/tests/Slider.spec.js
Normal file
23
src/slider/tests/Slider.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { sliderLight } from '../styles'
|
||||
import { NSlider } from '../index'
|
||||
|
||||
describe('n-slider', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
sliderLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NSlider, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/space/tests/Space.spec.js
Normal file
23
src/space/tests/Space.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { spaceLight } from '../styles'
|
||||
import { NSpace } from '../index'
|
||||
|
||||
describe('n-space', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
spaceLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NSpace, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/spin/tests/Spin.spec.js
Normal file
23
src/spin/tests/Spin.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { spinLight } from '../styles'
|
||||
import { NSpin } from '../index'
|
||||
|
||||
describe('n-spin', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
spinLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NSpin, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/statistic/tests/Statistic.spec.js
Normal file
23
src/statistic/tests/Statistic.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { statisticLight } from '../styles'
|
||||
import { NStatistic } from '../index'
|
||||
|
||||
describe('n-statistic', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
statisticLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NStatistic, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/steps/tests/Steps.spec.js
Normal file
23
src/steps/tests/Steps.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { stepsLight } from '../styles'
|
||||
import { NSteps } from '../index'
|
||||
|
||||
describe('n-steps', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
stepsLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NSteps, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/switch/tests/Switch.spec.js
Normal file
23
src/switch/tests/Switch.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { switchLight } from '../styles'
|
||||
import { NSwitch } from '../index'
|
||||
|
||||
describe('n-switch', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
switchLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NSwitch, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/table/tests/Table.spec.js
Normal file
23
src/table/tests/Table.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { tableLight } from '../styles'
|
||||
import { NTable } from '../index'
|
||||
|
||||
describe('n-table', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
tableLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTable, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/tabs/tests/Tabs.spec.js
Normal file
23
src/tabs/tests/Tabs.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { tabsLight } from '../styles'
|
||||
import { NTabs } from '../index'
|
||||
|
||||
describe('n-tabs', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
tabsLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTabs, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/tag/tests/Tag.spec.js
Normal file
23
src/tag/tests/Tag.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { tagLight } from '../styles'
|
||||
import { NTag } from '../index'
|
||||
|
||||
describe('n-tag', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
tagLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTag, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/thing/tests/Thing.spec.js
Normal file
23
src/thing/tests/Thing.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { thingLight } from '../styles'
|
||||
import { NThing } from '../index'
|
||||
|
||||
describe('n-thing', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
thingLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NThing, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/time-picker/tests/TimePicker.spec.js
Normal file
23
src/time-picker/tests/TimePicker.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { timePickerLight } from '../styles'
|
||||
import { NTimePicker } from '../index'
|
||||
|
||||
describe('n-time-picker', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
timePickerLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTimePicker, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/time/tests/Time.spec.js
Normal file
23
src/time/tests/Time.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { timeLight } from '../styles'
|
||||
import { NTime } from '../index'
|
||||
|
||||
describe('n-time', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
timeLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTime, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/timeline/tests/Timeline.spec.js
Normal file
23
src/timeline/tests/Timeline.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { timelineLight } from '../styles'
|
||||
import { NTimeline } from '../index'
|
||||
|
||||
describe('n-timeline', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
timelineLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTimeline, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/tooltip/tests/Tooltip.spec.js
Normal file
23
src/tooltip/tests/Tooltip.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { tooltipLight } from '../styles'
|
||||
import { NTooltip } from '../index'
|
||||
|
||||
describe('n-tooltip', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
tooltipLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTooltip, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/transfer/tests/Transfer.spec.js
Normal file
23
src/transfer/tests/Transfer.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { transferLight } from '../styles'
|
||||
import { NTransfer } from '../index'
|
||||
|
||||
describe('n-transfer', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
transferLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTransfer, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/tree/tests/Tree.spec.js
Normal file
23
src/tree/tests/Tree.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { treeLight } from '../styles'
|
||||
import { NTree } from '../index'
|
||||
|
||||
describe('n-tree', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
treeLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTree, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/typography/tests/Typography.spec.js
Normal file
23
src/typography/tests/Typography.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { typographyLight } from '../styles'
|
||||
import { NTypography } from '../index'
|
||||
|
||||
describe('n-typography', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
typographyLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NTypography, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
23
src/upload/tests/Upload.spec.js
Normal file
23
src/upload/tests/Upload.spec.js
Normal file
@ -0,0 +1,23 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import create from '../../create'
|
||||
import { enUS } from '../../locales'
|
||||
import { uploadLight } from '../styles'
|
||||
import { NUpload } from '../index'
|
||||
|
||||
describe('n-upload', () => {
|
||||
const naive = create({
|
||||
locales: [
|
||||
enUS
|
||||
],
|
||||
styles: [
|
||||
uploadLight
|
||||
]
|
||||
})
|
||||
it('should work with import on demand', () => {
|
||||
mount(NUpload, {
|
||||
global: {
|
||||
plugins: [naive]
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user