+6
-8
lines changedFilter options
+6
-8
lines changed Original file line number Diff line number Diff line change
@@ -8,10 +8,3 @@ test('should render the badge', async () => {
8
8
expect(wrapper.hasClass('md-badge')).toBe(true)
9
9
expect(wrapper.text()).toBe('Lorem ipsum')
10
10
})
11
-
12
-
test('should render the theme class', async () => {
13
-
const template = '<md-badge md-theme="alt">Lorem ipsum</md-badge>'
14
-
const wrapper = await mountTemplate(MdBadge, template)
15
-
16
-
expect(wrapper.hasClass('md-theme-alt')).toBe(true)
17
-
})
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
14
14
15
15
<script>
16
16
import MdComponent from 'core/MdComponent'
17
+
import MdPropValidator from 'core/utils/MdPropValidator'
17
18
18
19
import MdBadgeStandalone from './MdBadgeStandalone'
19
20
@@ -26,7 +27,11 @@
26
27
mdContent: [String, Number],
27
28
mdPosition: {
28
29
type: String,
29
-
default: 'top'
30
+
default: 'top',
31
+
...MdPropValidator('md-position', [
32
+
'top',
33
+
'bottom'
34
+
])
30
35
},
31
36
mdDense: Boolean
32
37
},
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4