File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
website/src/scripts/components/demo Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import '@glorious/demo/dist/gdemo.min.css';
33import 'prismjs/themes/prism-tomorrow.css' ;
44import GDemo from '@glorious/demo' ;
55import Prism from 'prismjs' ;
6+ import ENV from '@environment' ;
67import githubButtonWidget from '@scripts/components/github-button-widget/github-button-widget' ;
78import row from '@scripts/components/row/row' ;
89import rowItem from '@scripts/components/row-item/row-item' ;
@@ -19,7 +20,7 @@ export default {
1920 } ,
2021 data ( ) {
2122 return {
22- tweet : ' Consulte endereços postais da maneira mais fácil que você já viu!'
23+ tweet : ` Consulte endereços postais da maneira mais fácil que você já viu! ${ ENV . APP . BASE_URL } `
2324 } ;
2425 } ,
2526 mounted ( ) {
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ describe('Demo', () => {
3030 expect ( wrapper . classes ( ) ) . toEqual ( [ 'demo' ] ) ;
3131 } ) ;
3232
33+ it ( 'should contain a tweet sharing message' , ( ) => {
34+ const wrapper = mountComponent ( ) ;
35+ expect ( wrapper . vm . tweet ) . toEqual ( 'Consulte endereços postais da maneira mais fácil que você já viu! http://localhost:7000' ) ;
36+ } ) ;
37+
3338 it ( 'should contain container attribute' , ( ) => {
3439 const wrapper = mountComponent ( ) ;
3540 const container = wrapper . element ;
You can’t perform that action at this time.
0 commit comments