Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Commit 9920519

Browse files
author
Irfan Maulana
committed
Merge branch 'master' of github.com:mazipan/vue-string-filter
adada
2 parents 49c97d4 + de6e53e commit 9920519

File tree

2 files changed

+48
-35
lines changed

2 files changed

+48
-35
lines changed

index.html

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -24,52 +24,20 @@
2424
</head>
2525

2626
<body>
27-
<noscript><p>Please use the latest browser and enable javascript.</p></noscript>
27+
<noscript><p>Please use the latest browser and enable javascript.</p></noscript>
2828

2929
<div id="app"></div>
3030

3131
<script src="dist/bundle.js"></script>
32-
3332
<!-- GOOGLE ANALYTICS AND FRIENDS -->
3433
<script>function _trackLink(e,t,n){t||(t="Link"),n||(n="click"),ga("send",{hitType:"event",eventCategory:t,eventAction:n,eventLabel:e})}!function(e,t,n,a,c,i,o){e.GoogleAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*new Date,i=t.createElement(n),o=t.getElementsByTagName(n)[0],i.async=1,i.src=a,o.parentNode.insertBefore(i,o)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create","UA-25065548-2","auto"),ga("send","pageview"),window.onload=function(){try{_trackLink("demo vue-string-filter","demo","visit directly")}catch(e){}};</script>
3534
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
3635
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5442972248172818" data-ad-slot="1487770485" data-ad-format="auto"></ins>
3736
<script>
3837
(adsbygoogle = window.adsbygoogle || []).push({});
3938
</script>
40-
<script type="application/ld+json">{"@context":"http://schema.org","@type":"WebSite","url":"https://www.mazipan.github.io/","name":"Irfan Maulana | Front End Developer","author":"Irfan Maulana","image":"http://mazipan.github.io/images/irfan-maulana.jpg","description":"Irfan Maulana is Front End Developer from Indonesia - Man that craft some code to build a beauty and readable code, experienced in web and desktop technology.","sameAs":["https://www.facebook.com/mazipanneh","https://instagram.com/maz_ipan","https://twitter.com/Maz_Ipan","https://id.linkedin.com/in/irfanmaulanamazipan","https://www.slideshare.net/IrfanMaulana21","https://github.com/mazipan"]}</script> <script type="application/ld+json">{"@context":"http://schema.org","@type":"Person","email":"mailto:mazipanneh@gmail.com","image":"http://mazipan.github.io/images/irfan-maulana.jpg","jobTitle":"Software Engineer","name":"Irfan Maulana","url":"https://www.mazipan.github.io/","sameAs":["https://www.facebook.com/mazipanneh","https://instagram.com/maz_ipan","https://twitter.com/Maz_Ipan","https://id.linkedin.com/in/irfanmaulanamazipan","https://www.slideshare.net/IrfanMaulana21","https://github.com/mazipan"]}</script>
41-
42-
<script type="application/ld+json">
43-
{
44-
"@context": "http://schema.org",
45-
"@type": "BreadcrumbList",
46-
"itemListElement": [{
47-
"@type": "ListItem",
48-
"position": 1,
49-
"item": {
50-
"@id": "http://mazipan.github.io/",
51-
"name": "Home",
52-
"image": "http://mazipan.github.io/images/irfan-maulana.jpg"
53-
}
54-
}, {
55-
"@type": "ListItem",
56-
"position": 2,
57-
"item": {
58-
"@id": "http://mazipan.github.io/demo/",
59-
"name": "Demo",
60-
"image": "http://mazipan.github.io/images/irfan-maulana.jpg"
61-
}
62-
}, {
63-
"@type": "ListItem",
64-
"position": 3,
65-
"item": {
66-
"@id": "http://mazipan.github.io/vue-string-filter",
67-
"name": "vue-string-filter",
68-
"image": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f4b2.png"
69-
}
70-
}]
71-
}
72-
</script>
39+
<script type="application/ld+json">{"@context":"http://schema.org","@type":"WebSite","url":"https://www.mazipan.github.io/","name":"Irfan Maulana | Front End Developer","author":"Irfan Maulana","image":"http://mazipan.github.io/images/irfan-maulana.jpg","description":"Irfan Maulana is Front End Developer from Indonesia - Man that craft some code to build a beauty and readable code, experienced in web and desktop technology.","sameAs":["https://www.facebook.com/mazipanneh","https://instagram.com/maz_ipan","https://twitter.com/Maz_Ipan","https://id.linkedin.com/in/irfanmaulanamazipan","https://www.slideshare.net/IrfanMaulana21","https://github.com/mazipan"]}</script> <script type="application/ld+json">{"@context":"http://schema.org","@type":"Person","email":"mailto:mazipanneh@gmail.com","image":"http://mazipan.github.io/images/irfan-maulana.jpg","jobTitle":"Software Engineer","name":"Irfan Maulana","url":"https://www.mazipan.github.io/","sameAs":["https://www.facebook.com/mazipanneh","https://instagram.com/maz_ipan","https://twitter.com/Maz_Ipan","https://id.linkedin.com/in/irfanmaulanamazipan","https://www.slideshare.net/IrfanMaulana21","https://github.com/mazipan"]}</script>
40+
<script type="application/ld+json">{"@context":"http://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"http://mazipan.github.io/","name":"Home","image":"http://mazipan.github.io/images/irfan-maulana.jpg"}},{"@type":"ListItem","position":2,"item":{"@id":"http://mazipan.github.io/demo/","name":"Demo","image":"http://mazipan.github.io/images/irfan-maulana.jpg"}},{"@type":"ListItem","position":3,"item":{"@id":"http://mazipan.github.io/vue-string-filter","name":"vue-string-filter","image":"https://assets-cdn.github.com/images/icons/emoji/unicode/1f4b2.png"}}]}</script>
7341

7442
</body>
7543

test/VueStringFilter.spec.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,51 @@ describe('test VueStringFilter', () => {
99

1010
localVue.use(VueStringFilter)
1111

12+
let wrapper = shallow(App, {
13+
localVue
14+
})
15+
})
16+
it('Test lowercase', () => {
17+
let localVue = createLocalVue()
18+
19+
localVue.use(VueStringFilter)
20+
21+
let wrapper = shallow(App, {
22+
localVue
23+
})
24+
})
25+
it('Test uppercase', () => {
26+
let localVue = createLocalVue()
27+
28+
localVue.use(VueStringFilter)
29+
30+
let wrapper = shallow(App, {
31+
localVue
32+
})
33+
})
34+
it('Test titlecase', () => {
35+
let localVue = createLocalVue()
36+
37+
localVue.use(VueStringFilter)
38+
39+
let wrapper = shallow(App, {
40+
localVue
41+
})
42+
})
43+
it('Test capitalize', () => {
44+
let localVue = createLocalVue()
45+
46+
localVue.use(VueStringFilter)
47+
48+
let wrapper = shallow(App, {
49+
localVue
50+
})
51+
})
52+
it('Test slug', () => {
53+
let localVue = createLocalVue()
54+
55+
localVue.use(VueStringFilter)
56+
1257
let wrapper = shallow(App, {
1358
localVue
1459
})

0 commit comments

Comments
 (0)