From 3cb0e5dafc9bf27c5a1a9a6fc06f40c0dd4f6336 Mon Sep 17 00:00:00 2001 From: sniperadmin Date: Sat, 24 Oct 2020 16:48:01 +0200 Subject: [PATCH] test: add more coverage tests --- coverage/clover.xml | 79 ++- coverage/coverage-final.json | 7 +- coverage/lcov-report/index.html | 143 +++-- coverage/lcov-report/logo.svg.html | 112 ++-- coverage/lcov-report/src/assets/index.html | 110 ++++ coverage/lcov-report/src/assets/logo.svg.html | 82 +++ .../src/components/LoginForm.vue.html | 394 +++++++++++++ .../src/components/RegisterForm.vue.html | 541 ++++++++++++++++++ .../lcov-report/src/components/Tabs.vue.html | 301 ++++++++++ .../src/components/VuetifyLogo.vue.html | 160 ++++++ .../lcov-report/src/components/index.html | 155 +++++ coverage/lcov-report/src/fb.js.html | 133 +++++ coverage/lcov-report/src/index.html | 110 ++++ coverage/lcov.info | 147 ++++- package-lock.json | 97 ++-- package.json | 2 +- src/components/Tabs.vue | 8 +- src/components/VuetifyLogo.vue | 5 +- tests/unit/components/VuetifyLogo.spec.js | 21 +- tests/unit/components/loginForm.spec.js | 22 + tests/unit/components/tabs.spec.js | 22 + 21 files changed, 2468 insertions(+), 183 deletions(-) create mode 100644 coverage/lcov-report/src/assets/index.html create mode 100644 coverage/lcov-report/src/assets/logo.svg.html create mode 100644 coverage/lcov-report/src/components/LoginForm.vue.html create mode 100644 coverage/lcov-report/src/components/RegisterForm.vue.html create mode 100644 coverage/lcov-report/src/components/Tabs.vue.html create mode 100644 coverage/lcov-report/src/components/VuetifyLogo.vue.html create mode 100644 coverage/lcov-report/src/components/index.html create mode 100644 coverage/lcov-report/src/fb.js.html create mode 100644 coverage/lcov-report/src/index.html create mode 100644 tests/unit/components/loginForm.spec.js create mode 100644 tests/unit/components/tabs.spec.js diff --git a/coverage/clover.xml b/coverage/clover.xml index ee07044..633c783 100644 --- a/coverage/clover.xml +++ b/coverage/clover.xml @@ -1,10 +1,77 @@ - - - - + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json index 33397ec..2cf2752 100644 --- a/coverage/coverage-final.json +++ b/coverage/coverage-final.json @@ -1,2 +1,7 @@ -{"D:\\nasr\\projects\\web-development\\other\\tasks requested\\vue-chat\\src\\assets\\logo.svg": {"path":"D:\\nasr\\projects\\web-development\\other\\tasks requested\\vue-chat\\src\\assets\\logo.svg","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"82e28287b24f5d8d269527949d971703b9a7a83e"} +{"/home/linuxlite/Desktop/vue-chat/src/fb.js": {"path":"/home/linuxlite/Desktop/vue-chat/src/fb.js","statementMap":{"0":{"start":{"line":3,"column":23},"end":{"line":11,"column":1}},"1":{"start":{"line":13,"column":0},"end":{"line":13,"column":29}},"2":{"start":{"line":15,"column":17},"end":{"line":15,"column":55}},"3":{"start":{"line":17,"column":11},"end":{"line":17,"column":31}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1},"f":{},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4cc9495099dda0f20e3e30f5642f2e76d4e6c5e2"} +,"/home/linuxlite/Desktop/vue-chat/src/assets/logo.svg": {"path":"/home/linuxlite/Desktop/vue-chat/src/assets/logo.svg","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}}},"fnMap":{},"branchMap":{},"s":{"0":1},"f":{},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"edaaf353d82497d3f65171934458cd059fb2075a"} +,"/home/linuxlite/Desktop/vue-chat/src/components/LoginForm.vue": {"path":"/home/linuxlite/Desktop/vue-chat/src/components/LoginForm.vue","statementMap":{"0":{"start":{"line":56,"column":0},"end":{"line":56,"column":null}},"1":{"start":{"line":60,"column":0},"end":{"line":60,"column":null}},"2":{"start":{"line":63,"column":0},"end":{"line":63,"column":null}},"3":{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},"4":{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},"5":{"start":{"line":80,"column":0},"end":{"line":80,"column":null}},"6":{"start":{"line":83,"column":0},"end":{"line":98,"column":null}},"7":{"start":{"line":85,"column":0},"end":{"line":97,"column":null}},"8":{"start":{"line":88,"column":0},"end":{"line":88,"column":null}},"9":{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},"10":{"start":{"line":90,"column":0},"end":{"line":90,"column":null}},"11":{"start":{"line":91,"column":0},"end":{"line":91,"column":null}},"12":{"start":{"line":95,"column":0},"end":{"line":95,"column":null}},"13":{"start":{"line":96,"column":0},"end":{"line":96,"column":null}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":60,"column":0},"end":{"line":60,"column":null}},"loc":{"start":{"line":60,"column":0},"end":{"line":60,"column":null}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":63,"column":0},"end":{"line":63,"column":null}},"loc":{"start":{"line":63,"column":0},"end":{"line":63,"column":null}}},"2":{"name":"(anonymous_4)","decl":{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},"loc":{"start":{"line":68,"column":0},"end":{"line":68,"column":null}}},"3":{"name":"(anonymous_6)","decl":{"start":{"line":78,"column":0},"end":{"line":78,"column":null}},"loc":{"start":{"line":78,"column":0},"end":{"line":99,"column":null}}},"4":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":0},"end":{"line":85,"column":null}},"loc":{"start":{"line":85,"column":0},"end":{"line":93,"column":null}}},"5":{"name":"(anonymous_8)","decl":{"start":{"line":93,"column":0},"end":{"line":93,"column":null}},"loc":{"start":{"line":93,"column":0},"end":{"line":97,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":63,"column":0},"end":{"line":63,"column":null}},"type":"binary-expr","locations":[{"start":{"line":63,"column":0},"end":{"line":63,"column":null}},{"start":{"line":63,"column":0},"end":{"line":63,"column":null}}]},"1":{"loc":{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},"type":"binary-expr","locations":[{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},{"start":{"line":68,"column":0},"end":{"line":68,"column":null}}]},"2":{"loc":{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},"type":"binary-expr","locations":[{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},{"start":{"line":68,"column":0},"end":{"line":68,"column":null}}]},"3":{"loc":{"start":{"line":83,"column":0},"end":{"line":98,"column":null}},"type":"if","locations":[{"start":{"line":83,"column":0},"end":{"line":98,"column":null}},{"start":{"line":83,"column":0},"end":{"line":98,"column":null}}]}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0,0],"3":[0,0]}} +,"/home/linuxlite/Desktop/vue-chat/src/components/RegisterForm.vue": {"path":"/home/linuxlite/Desktop/vue-chat/src/components/RegisterForm.vue","statementMap":{"0":{"start":{"line":69,"column":0},"end":{"line":69,"column":null}},"1":{"start":{"line":76,"column":0},"end":{"line":76,"column":null}},"2":{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},"3":{"start":{"line":84,"column":0},"end":{"line":84,"column":null}},"4":{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},"5":{"start":{"line":104,"column":0},"end":{"line":104,"column":null}},"6":{"start":{"line":105,"column":0},"end":{"line":147,"column":null}},"7":{"start":{"line":108,"column":0},"end":{"line":108,"column":null}},"8":{"start":{"line":112,"column":0},"end":{"line":145,"column":null}},"9":{"start":{"line":118,"column":0},"end":{"line":118,"column":null}},"10":{"start":{"line":121,"column":0},"end":{"line":121,"column":null}},"11":{"start":{"line":123,"column":0},"end":{"line":123,"column":null}},"12":{"start":{"line":133,"column":0},"end":{"line":133,"column":null}},"13":{"start":{"line":134,"column":0},"end":{"line":134,"column":null}},"14":{"start":{"line":137,"column":0},"end":{"line":137,"column":null}},"15":{"start":{"line":138,"column":0},"end":{"line":143,"column":null}},"16":{"start":{"line":139,"column":0},"end":{"line":139,"column":null}},"17":{"start":{"line":140,"column":0},"end":{"line":143,"column":null}},"18":{"start":{"line":141,"column":0},"end":{"line":141,"column":null}},"19":{"start":{"line":142,"column":0},"end":{"line":142,"column":null}},"20":{"start":{"line":144,"column":0},"end":{"line":144,"column":null}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":76,"column":0},"end":{"line":76,"column":null}},"loc":{"start":{"line":76,"column":0},"end":{"line":76,"column":null}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},"loc":{"start":{"line":79,"column":0},"end":{"line":79,"column":null}}},"2":{"name":"(anonymous_4)","decl":{"start":{"line":84,"column":0},"end":{"line":84,"column":null}},"loc":{"start":{"line":84,"column":0},"end":{"line":84,"column":null}}},"3":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},"loc":{"start":{"line":89,"column":0},"end":{"line":89,"column":null}}},"4":{"name":"(anonymous_8)","decl":{"start":{"line":103,"column":0},"end":{"line":103,"column":null}},"loc":{"start":{"line":103,"column":0},"end":{"line":148,"column":null}}},"5":{"name":"(anonymous_9)","decl":{"start":{"line":112,"column":0},"end":{"line":112,"column":null}},"loc":{"start":{"line":112,"column":0},"end":{"line":135,"column":null}}},"6":{"name":"(anonymous_10)","decl":{"start":{"line":135,"column":0},"end":{"line":135,"column":null}},"loc":{"start":{"line":135,"column":0},"end":{"line":145,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},"type":"binary-expr","locations":[{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},{"start":{"line":79,"column":0},"end":{"line":79,"column":null}}]},"1":{"loc":{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},"type":"binary-expr","locations":[{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},{"start":{"line":79,"column":0},"end":{"line":79,"column":null}},{"start":{"line":79,"column":0},"end":{"line":79,"column":null}}]},"2":{"loc":{"start":{"line":84,"column":0},"end":{"line":84,"column":null}},"type":"binary-expr","locations":[{"start":{"line":84,"column":0},"end":{"line":84,"column":null}},{"start":{"line":84,"column":0},"end":{"line":84,"column":null}}]},"3":{"loc":{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},"type":"binary-expr","locations":[{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},{"start":{"line":89,"column":0},"end":{"line":89,"column":null}}]},"4":{"loc":{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},"type":"binary-expr","locations":[{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},{"start":{"line":89,"column":0},"end":{"line":89,"column":null}},{"start":{"line":89,"column":0},"end":{"line":89,"column":null}}]},"5":{"loc":{"start":{"line":105,"column":0},"end":{"line":147,"column":null}},"type":"if","locations":[{"start":{"line":105,"column":0},"end":{"line":147,"column":null}},{"start":{"line":105,"column":0},"end":{"line":147,"column":null}}]},"6":{"loc":{"start":{"line":138,"column":0},"end":{"line":143,"column":null}},"type":"if","locations":[{"start":{"line":138,"column":0},"end":{"line":143,"column":null}},{"start":{"line":138,"column":0},"end":{"line":143,"column":null}}]},"7":{"loc":{"start":{"line":140,"column":0},"end":{"line":143,"column":null}},"type":"if","locations":[{"start":{"line":140,"column":0},"end":{"line":143,"column":null}},{"start":{"line":140,"column":0},"end":{"line":143,"column":null}}]}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"b":{"0":[0,0],"1":[0,0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0]}} +,"/home/linuxlite/Desktop/vue-chat/src/components/Tabs.vue": {"path":"/home/linuxlite/Desktop/vue-chat/src/components/Tabs.vue","statementMap":{"0":{"start":{"line":60,"column":0},"end":{"line":60,"column":null}},"1":{"start":{"line":61,"column":0},"end":{"line":61,"column":null}},"2":{"start":{"line":69,"column":0},"end":{"line":69,"column":null}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":68,"column":0},"end":{"line":68,"column":null}},"loc":{"start":{"line":68,"column":0},"end":{"line":72,"column":null}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{"0":1},"b":{}} +,"/home/linuxlite/Desktop/vue-chat/src/components/VuetifyLogo.vue": {"path":"/home/linuxlite/Desktop/vue-chat/src/components/VuetifyLogo.vue","statementMap":{"0":{"start":{"line":14,"column":0},"end":{"line":14,"column":null}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":0},"end":{"line":13,"column":null}},"loc":{"start":{"line":13,"column":0},"end":{"line":15,"column":null}}}},"branchMap":{},"s":{"0":1},"f":{"0":1},"b":{}} } diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html index 407d2fc..98e96f5 100644 --- a/coverage/lcov-report/index.html +++ b/coverage/lcov-report/index.html @@ -1,5 +1,7 @@ + + Code coverage report for All files @@ -12,40 +14,48 @@ } +
-
-

- All files -

-
-
- 100% - Statements - 1/1 -
-
- 100% - Branches - 0/0 -
-
- 100% - Functions - 0/0 -
-
- 100% - Lines - 1/1 -
+
+

All files

+
+ +
+ 25% + Statements + 11/44 +
+ + +
+ 0% + Branches + 0/27 +
+ + +
+ 13.33% + Functions + 2/15 +
+ + +
+ 25% + Lines + 11/44 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
+
+
@@ -62,8 +72,25 @@

- - + + + + + + + + + + + + + + + @@ -74,24 +101,40 @@

+ + + + + + + + + + + + +
logo.svg
src +
+
100%4/4100%0/0100%0/0100%4/4
src/assets +
+
100% 1/1 100%1/1
src/components +
+
15.38%6/390%0/2713.33%2/1515.38%6/39
-
-
- -
- - - - - +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/logo.svg.html b/coverage/lcov-report/logo.svg.html index 3526308..77bb4e7 100644 --- a/coverage/lcov-report/logo.svg.html +++ b/coverage/lcov-report/logo.svg.html @@ -1,5 +1,7 @@ + + Code coverage report for logo.svg @@ -12,61 +14,69 @@ } +
-
-

- All files logo.svg -

-
-
- 100% - Statements - 1/1 -
-
- 100% - Branches - 0/0 -
-
- 100% - Functions - 0/0 -
-
- 100% - Lines - 1/1 -
+
+

All files logo.svg

+
+ +
+ 100% + Statements + 1/1 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 1/1 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

+    
+
-
1 21x  
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.5 100"><defs><style>.cls-1{fill:#1697f6;}.cls-2{fill:#7bc6ff;}.cls-3{fill:#1867c0;}.cls-4{fill:#aeddff;}</style></defs><title>Artboard 46</title><polyline class="cls-1" points="43.75 0 23.31 0 43.75 48.32"/><polygon class="cls-2" points="43.75 62.5 43.75 100 0 14.58 22.92 14.58 43.75 62.5"/><polyline class="cls-3" points="43.75 0 64.19 0 43.75 48.32"/><polygon class="cls-4" points="64.58 14.58 87.5 14.58 43.75 100 43.75 62.5 64.58 14.58"/></svg>
- 
-
-
- -
- - - - - +  + +
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/assets/index.html b/coverage/lcov-report/src/assets/index.html new file mode 100644 index 0000000..27dda6f --- /dev/null +++ b/coverage/lcov-report/src/assets/index.html @@ -0,0 +1,110 @@ + + + + + + Code coverage report for src/assets + + + + + + + + +
+
+

All files src/assets

+
+ +
+ 100% + Statements + 1/1 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 1/1 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
logo.svg +
+
100%1/1100%0/0100%0/0100%1/1
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/assets/logo.svg.html b/coverage/lcov-report/src/assets/logo.svg.html new file mode 100644 index 0000000..8592e15 --- /dev/null +++ b/coverage/lcov-report/src/assets/logo.svg.html @@ -0,0 +1,82 @@ + + + + + + Code coverage report for src/assets/logo.svg + + + + + + + + +
+
+

All files / src/assets logo.svg

+
+ +
+ 100% + Statements + 1/1 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 1/1 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+

+
1 +21x + 
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.5 100"><defs><style>.cls-1{fill:#1697f6;}.cls-2{fill:#7bc6ff;}.cls-3{fill:#1867c0;}.cls-4{fill:#aeddff;}</style></defs><title>Artboard 46</title><polyline class="cls-1" points="43.75 0 23.31 0 43.75 48.32"/><polygon class="cls-2" points="43.75 62.5 43.75 100 0 14.58 22.92 14.58 43.75 62.5"/><polyline class="cls-3" points="43.75 0 64.19 0 43.75 48.32"/><polygon class="cls-4" points="64.58 14.58 87.5 14.58 43.75 100 43.75 62.5 64.58 14.58"/></svg>
+ 
+ +
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/components/LoginForm.vue.html b/coverage/lcov-report/src/components/LoginForm.vue.html new file mode 100644 index 0000000..2f1aa37 --- /dev/null +++ b/coverage/lcov-report/src/components/LoginForm.vue.html @@ -0,0 +1,394 @@ + + + + + + Code coverage report for src/components/LoginForm.vue + + + + + + + + +
+
+

All files / src/components LoginForm.vue

+
+ +
+ 7.14% + Statements + 1/14 +
+ + +
+ 0% + Branches + 0/9 +
+ + +
+ 0% + Functions + 0/6 +
+ + +
+ 7.14% + Lines + 1/14 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
<template>
+  <v-card outlined color="blue-grey darken-3">
+    <v-card-title>
+    <v-avatar>
+      <img src="../assets/logo.svg" alt="test">
+    </v-avatar>
+      <span class="headline text-center">login </span>
+    </v-card-title>
+ 
+    <v-card-text>
+      <v-container>
+        <v-form
+          ref="login"
+          v-model="valid"
+        >
+          <v-text-field
+            label="Email *"
+            type="email"
+            :rules="emailRules"
+            required
+            v-model="email"
+          ></v-text-field>
+ 
+          <v-text-field
+            label="password *"
+            type="password"
+            :rules="passwordRules"
+            required
+            v-model="password"
+          ></v-text-field>
+ 
+        </v-form>
+      </v-container>
+      <small>*indicates required field</small>
+      <p style="color: red">
+        <small v-if="boo">{{ boo }}</small>
+      </p>
+    </v-card-text>
+    <v-card-actions>
+      <v-spacer></v-spacer>
+      <v-btn
+        color="blue darken-1"
+        text :disabled="!valid"
+        @keydown.enter="login"
+        @click="login"
+        :loading="loading"
+      >
+        Login
+      </v-btn>
+      
+    </v-card-actions>
+  </v-card>
+</template>
+ 
+<script>
+  import { firebase } from '../fb'
+ 
+  export default {
+    name: 'login-form',
+    data: () => ({
+      valid: true,
+      email: null,
+      emailRules: [
+        v => !!v || 'Email is required',
+        v => /.+@.+\..+/.test(v) || 'Please Enter a valid e-mail'
+      ],
+      password: null,
+      passwordRules: [
+        v => !!v || 'Password is required!',
+        v => (v && v.length >= 6 || 'Name must be more than 6 charactera')
+ 
+      ],
+      boo: null,
+      loading: false
+      // reminder for me to add validations
+    }),
+    methods: {
+      login () {
+        this.loading = true
+        let email = this.email,
+          password = this.password;
+        
+        if (this.$refs.login.validate()) {
+          
+          firebase.auth().signInWithEmailAndPassword(email, password)
+          .then((result) => {
+            
+            const { user } = result
+            window.localStorage.setItem('user', JSON.stringify(user))
+            this.loading = false
+            this.$router.push('/');
+ 
+          })
+          .catch((err) => {
+            this.loading = false
+            this.boo = err.message
+          })
+        }
+      }
+    }
+  }
+</script>
+ 
+<style lang="scss" scoped>
+ 
+</style>
+ +
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/components/RegisterForm.vue.html b/coverage/lcov-report/src/components/RegisterForm.vue.html new file mode 100644 index 0000000..0c4ab6d --- /dev/null +++ b/coverage/lcov-report/src/components/RegisterForm.vue.html @@ -0,0 +1,541 @@ + + + + + + Code coverage report for src/components/RegisterForm.vue + + + + + + + + +
+
+

All files / src/components RegisterForm.vue

+
+ +
+ 4.76% + Statements + 1/21 +
+ + +
+ 0% + Branches + 0/18 +
+ + +
+ 0% + Functions + 0/7 +
+ + +
+ 4.76% + Lines + 1/21 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
<template>
+  <v-card outlined color="blue-grey darken-3">
+    <v-card-title>
+    <v-avatar>
+      <img src="../assets/logo.svg" alt="test">
+    </v-avatar>
+      <span class="headline text-center">Register </span>
+    </v-card-title>
+ 
+    <v-card-text>
+      <v-container>
+        <v-form
+          ref="register"
+          v-model="valid"
+        >
+ 
+          <v-text-field
+            label="Display Name *"
+            hint="will be shown on your profile"
+            :rules="nameRules"
+            required
+            v-model="name"
+          ></v-text-field>
+ 
+          <v-text-field
+            label="Email *"
+            type="email"
+            :rules="emailRules"
+            required
+            v-model="email"
+          ></v-text-field>
+          
+          <v-text-field
+            label="Password *"
+            hint="choose a password"
+            persistent-hint
+            type="password"
+            required
+            v-model="password"
+          ></v-text-field>
+ 
+        </v-form>
+      </v-container>
+      <small>*indicates required field</small>
+      <p style="color: red">
+        <small>
+          {{ boo }}
+        </small>
+      </p>
+    </v-card-text>
+    <v-card-actions>
+      <v-spacer></v-spacer>
+ 
+      <v-btn
+        color="blue darken-1"
+        text :disabled="!valid"
+        @keydown.enter="register"
+        @click="register"
+        :loading="loading"
+      >
+        Register
+      </v-btn>
+ 
+    </v-card-actions>
+  </v-card>
+</template>
+ 
+<script>
+  import {
+    firebase,
+    db
+  } from '../fb'
+ 
+  export default {
+    name: 'login-form',
+    data: () => ({
+      valid: true,
+      name: null,
+      nameRules: [
+        v => !!v || 'Name is required!',
+        v => (v && v.length <= 10 || 'Name must be less than 10 charactera')
+      ],
+      email: null,
+      emailRules: [
+        v => !!v || 'Email is required',
+        v => /.+@.+\..+/.test(v) || 'Please Enter a valid e-mail'
+      ],
+      password: null,
+      passwordRules: [
+        v => !!v || 'Password is required!',
+        v => (v && v.length >= 6 || 'Name must be more than 6 charactera')
+ 
+      ],
+      phone: null,
+      address: null,
+      postcode: null,
+      photo: 'https://lh5.googleusercontent.com/-U1TFOGH-4DQ/AAAAAAAAAAI/AAAAAAAAAuE/tS4M30mPvU8/photo.jpg',
+      boo: null,
+      loading: false
+      // reminder for me to add validations
+    }),
+    methods: {
+      register() {
+        this.loading = true
+        if (this.$refs.register.validate()) {
+ 
+          // [START createwithemail]
+          let email = this.email,
+            password = this.password
+            // userRegisteredName = this.name
+        
+          firebase.auth().createUserWithEmailAndPassword(email, password)
+            .then((result) => {
+    
+              // const token = result.credential.accessToken
+              // console.log(token)
+ 
+              const { user } = result
+ 
+              // update displayName
+              user.updateProfile({ displayName: this.name })
+ 
+              db.collection('profiles').doc(user.uid).set({
+                name: this.name,
+                phone: user.phoneNumber,
+                address: null,
+                id: user.uid,
+                email: user.email,
+                liveStatus: null,
+                photo: this.photo
+              })
+ 
+              this.loading = false
+              this.$router.push('/')
+            })
+            .catch(error => {
+              this.loading = false
+              if (error.code === 'auth/email-already-in-use') {
+                return
+              } else if (error.code === 'auth/weak-password') {
+                this.boo = error.message
+                return
+              }
+              this.boo = error.message
+            })
+            // [END createwithemail]
+          }
+        }
+    }
+  }
+</script>
+ 
+<style lang="scss" scoped>
+ 
+</style>
+ +
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/components/Tabs.vue.html b/coverage/lcov-report/src/components/Tabs.vue.html new file mode 100644 index 0000000..03e727e --- /dev/null +++ b/coverage/lcov-report/src/components/Tabs.vue.html @@ -0,0 +1,301 @@ + + + + + + Code coverage report for src/components/Tabs.vue + + + + + + + + +
+
+

All files / src/components Tabs.vue

+
+ +
+ 100% + Statements + 3/3 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 3/3 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +1x +1x +  +  +  +  +  +  +  +1x +  +  +  +  +  + 
<template>
+  <v-card>
+    <v-tabs
+      v-model="tab"
+      background-color="blue-grey darken-3"
+      centered
+      dark
+      icons-and-text
+      grow
+    >
+      <v-tabs-slider></v-tabs-slider>
+ 
+      <v-tab>
+        Register
+      </v-tab>
+ 
+      <v-tab>
+        Login
+      </v-tab>
+    </v-tabs>
+ 
+    <v-tabs-items v-model="tab">
+      <v-tab-item
+      >
+        <v-card flat>
+          <v-card-text>
+            <!-- <v-alert
+              outlined
+              type="warning"
+              prominent
+              border="left"
+            >
+              under construction
+            </v-alert> -->
+              <Register-form />
+          </v-card-text>
+        </v-card>
+      </v-tab-item>
+ 
+      <v-tab-item>
+        <v-card>
+          <v-card-text>
+            <!-- <v-alert
+              outlined
+              type="warning"
+              prominent
+              border="left"
+            >
+              under construction
+            </v-alert> -->
+          <Login-form></Login-form>
+          </v-card-text>
+        </v-card>
+      </v-tab-item>
+ 
+    </v-tabs-items>
+  </v-card>
+</template>
+<script>
+  import LoginForm from '@/components/LoginForm'
+  import RegisterForm from '@/components/RegisterForm'
+  export default {
+    name: 'tabs',
+    components: {
+      LoginForm,
+      RegisterForm
+    },
+    data () {
+        return {
+            tab: null
+        }
+    }
+  }
+</script>
+ 
+ +
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/components/VuetifyLogo.vue.html b/coverage/lcov-report/src/components/VuetifyLogo.vue.html new file mode 100644 index 0000000..313ddea --- /dev/null +++ b/coverage/lcov-report/src/components/VuetifyLogo.vue.html @@ -0,0 +1,160 @@ + + + + + + Code coverage report for src/components/VuetifyLogo.vue + + + + + + + + +
+
+

All files / src/components VuetifyLogo.vue

+
+ +
+ 100% + Statements + 1/1 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 100% + Lines + 1/1 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28  +  +  +  +  +  +  +  +  +  +  +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  + 
<template>
+  <v-img
+    :src="require('../assets/logo.svg')"
+    class="my-3"
+    contain
+    :height="height"
+  ></v-img>
+</template>
+ 
+<script>
+  export default {
+    name: 'vuetify-logo',
+    data() {
+      return {}
+    },
+    props: {
+      height: {
+        type: Number,
+        default: 50
+      }
+    }
+  }
+</script>
+ 
+<style scoped>
+ 
+</style>
+ 
+ +
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/components/index.html b/coverage/lcov-report/src/components/index.html new file mode 100644 index 0000000..6d4dd13 --- /dev/null +++ b/coverage/lcov-report/src/components/index.html @@ -0,0 +1,155 @@ + + + + + + Code coverage report for src/components + + + + + + + + +
+
+

All files src/components

+
+ +
+ 15.38% + Statements + 6/39 +
+ + +
+ 0% + Branches + 0/27 +
+ + +
+ 13.33% + Functions + 2/15 +
+ + +
+ 15.38% + Lines + 6/39 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
LoginForm.vue +
+
7.14%1/140%0/90%0/67.14%1/14
RegisterForm.vue +
+
4.76%1/210%0/180%0/74.76%1/21
Tabs.vue +
+
100%3/3100%0/0100%1/1100%3/3
VuetifyLogo.vue +
+
100%1/1100%0/0100%1/1100%1/1
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/fb.js.html b/coverage/lcov-report/src/fb.js.html new file mode 100644 index 0000000..8a072f7 --- /dev/null +++ b/coverage/lcov-report/src/fb.js.html @@ -0,0 +1,133 @@ + + + + + + Code coverage report for src/fb.js + + + + + + + + +
+
+

All files / src fb.js

+
+ +
+ 100% + Statements + 4/4 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 4/4 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19  +  +1x +  +  +  +  +  +  +  +  +  +1x +  +1x +  +1x +  + 
import Firebase from 'firebase'
+ 
+const firebaseConfig = {
+  apiKey: 'AIzaSyA6Ez3-5dlCLicWYBCRmh55U37YW0U6zqE',
+  authDomain: 'chat-app-f412a.firebaseapp.com',
+  databaseURL: 'https://chat-app-f412a.firebaseio.com',
+  projectId: 'chat-app-f412a',
+  storageBucket: '',
+  messagingSenderId: '32699626357',
+  appId: '1:32699626357:web:9f6c7040e60de8ee',
+};
+ 
+require('firebase/firestore')
+ 
+const firebase = Firebase.initializeApp(firebaseConfig)
+ 
+const db = Firebase.firestore()
+ 
+export { firebase, db }
+ +
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/index.html b/coverage/lcov-report/src/index.html new file mode 100644 index 0000000..96d45fe --- /dev/null +++ b/coverage/lcov-report/src/index.html @@ -0,0 +1,110 @@ + + + + + + Code coverage report for src + + + + + + + + +
+
+

All files src

+
+ +
+ 100% + Statements + 4/4 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 4/4 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
fb.js +
+
100%4/4100%0/0100%0/0100%4/4
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/coverage/lcov.info b/coverage/lcov.info index 60b01ff..5fc0a33 100644 --- a/coverage/lcov.info +++ b/coverage/lcov.info @@ -1,5 +1,18 @@ TN: -SF:D:\nasr\projects\web-development\other\tasks requested\vue-chat\src\assets\logo.svg +SF:/home/linuxlite/Desktop/vue-chat/src/fb.js +FNF:0 +FNH:0 +DA:3,1 +DA:13,1 +DA:15,1 +DA:17,1 +LF:4 +LH:4 +BRF:0 +BRH:0 +end_of_record +TN: +SF:/home/linuxlite/Desktop/vue-chat/src/assets/logo.svg FNF:0 FNH:0 DA:1,1 @@ -8,3 +21,135 @@ LH:1 BRF:0 BRH:0 end_of_record +TN: +SF:/home/linuxlite/Desktop/vue-chat/src/components/LoginForm.vue +FN:60,(anonymous_1) +FN:63,(anonymous_2) +FN:68,(anonymous_4) +FN:78,(anonymous_6) +FN:85,(anonymous_7) +FN:93,(anonymous_8) +FNF:6 +FNH:0 +FNDA:0,(anonymous_1) +FNDA:0,(anonymous_2) +FNDA:0,(anonymous_4) +FNDA:0,(anonymous_6) +FNDA:0,(anonymous_7) +FNDA:0,(anonymous_8) +DA:56,1 +DA:60,0 +DA:63,0 +DA:68,0 +DA:79,0 +DA:80,0 +DA:83,0 +DA:85,0 +DA:88,0 +DA:89,0 +DA:90,0 +DA:91,0 +DA:95,0 +DA:96,0 +LF:14 +LH:1 +BRDA:63,0,0,0 +BRDA:63,0,1,0 +BRDA:68,1,0,0 +BRDA:68,1,1,0 +BRDA:68,2,0,0 +BRDA:68,2,1,0 +BRDA:68,2,2,0 +BRDA:83,3,0,0 +BRDA:83,3,1,0 +BRF:9 +BRH:0 +end_of_record +TN: +SF:/home/linuxlite/Desktop/vue-chat/src/components/RegisterForm.vue +FN:76,(anonymous_1) +FN:79,(anonymous_2) +FN:84,(anonymous_4) +FN:89,(anonymous_6) +FN:103,(anonymous_8) +FN:112,(anonymous_9) +FN:135,(anonymous_10) +FNF:7 +FNH:0 +FNDA:0,(anonymous_1) +FNDA:0,(anonymous_2) +FNDA:0,(anonymous_4) +FNDA:0,(anonymous_6) +FNDA:0,(anonymous_8) +FNDA:0,(anonymous_9) +FNDA:0,(anonymous_10) +DA:69,1 +DA:76,0 +DA:79,0 +DA:84,0 +DA:89,0 +DA:104,0 +DA:105,0 +DA:108,0 +DA:112,0 +DA:118,0 +DA:121,0 +DA:123,0 +DA:133,0 +DA:134,0 +DA:137,0 +DA:138,0 +DA:139,0 +DA:140,0 +DA:141,0 +DA:142,0 +DA:144,0 +LF:21 +LH:1 +BRDA:79,0,0,0 +BRDA:79,0,1,0 +BRDA:79,1,0,0 +BRDA:79,1,1,0 +BRDA:79,1,2,0 +BRDA:84,2,0,0 +BRDA:84,2,1,0 +BRDA:89,3,0,0 +BRDA:89,3,1,0 +BRDA:89,4,0,0 +BRDA:89,4,1,0 +BRDA:89,4,2,0 +BRDA:105,5,0,0 +BRDA:105,5,1,0 +BRDA:138,6,0,0 +BRDA:138,6,1,0 +BRDA:140,7,0,0 +BRDA:140,7,1,0 +BRF:18 +BRH:0 +end_of_record +TN: +SF:/home/linuxlite/Desktop/vue-chat/src/components/Tabs.vue +FN:68,(anonymous_1) +FNF:1 +FNH:1 +FNDA:1,(anonymous_1) +DA:60,1 +DA:61,1 +DA:69,1 +LF:3 +LH:3 +BRF:0 +BRH:0 +end_of_record +TN: +SF:/home/linuxlite/Desktop/vue-chat/src/components/VuetifyLogo.vue +FN:13,(anonymous_1) +FNF:1 +FNH:1 +FNDA:1,(anonymous_1) +DA:14,1 +LF:1 +LH:1 +BRF:0 +BRH:0 +end_of_record diff --git a/package-lock.json b/package-lock.json index efe562b..e559fc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2058,16 +2058,6 @@ "integrity": "sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==", "dev": true }, - "@types/mini-css-extract-plugin": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/@types/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.1.tgz", - "integrity": "sha512-+mN04Oszdz9tGjUP/c1ReVwJXxSniLd7lF++sv+8dkABxVNthg6uccei+4ssKxRHGoMmPxdn7uBdJWONSJGTGQ==", - "dev": true, - "optional": true, - "requires": { - "@types/webpack": "*" - } - }, "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", @@ -2538,6 +2528,17 @@ "unique-filename": "^1.1.1" } }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -2585,6 +2586,18 @@ "supports-color": "^7.0.0" } }, + "loader-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, "lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -2660,6 +2673,18 @@ "webpack-sources": "^1.4.3" } }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.0.0-beta.8", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.8.tgz", + "integrity": "sha512-oouKUQWWHbSihqSD7mhymGPX1OQ4hedzAHyvm8RdyHh6m3oIvoRF+NM45i/bhNOlo8jCnuJhaSUf/6oDjv978g==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + } + }, "yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -14749,58 +14774,6 @@ } } }, - "vue-loader-v16": { - "version": "npm:vue-loader@16.0.0-beta.5", - "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.5.tgz", - "integrity": "sha512-ciWfzNefqWlmzKznCWY9hl+fPP4KlQ0A9MtHbJ/8DpyY+dAM8gDrjufIdxwTgC4szE4EZC3A6ip/BbrqM84GqA==", - "dev": true, - "optional": true, - "requires": { - "@types/mini-css-extract-plugin": "^0.9.1", - "chalk": "^3.0.0", - "hash-sum": "^2.0.0", - "loader-utils": "^1.2.3", - "merge-source-map": "^1.1.0", - "source-map": "^0.6.1" - }, - "dependencies": { - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "optional": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - }, - "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "dev": true, - "optional": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "vue-router": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.3.tgz", diff --git a/package.json b/package.json index 39092c1..1dab9e7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "test:unit": "vue-cli-service test:unit", + "test:unit": "vue-cli-service test:unit --watchAll", "lint": "vue-cli-service lint" }, "dependencies": { diff --git a/src/components/Tabs.vue b/src/components/Tabs.vue index 36299d7..afaea17 100644 --- a/src/components/Tabs.vue +++ b/src/components/Tabs.vue @@ -66,9 +66,9 @@ RegisterForm }, data () { - return { - tab: null - } + return { + tab: null + } } } - \ No newline at end of file + diff --git a/src/components/VuetifyLogo.vue b/src/components/VuetifyLogo.vue index 9707468..958bf1c 100644 --- a/src/components/VuetifyLogo.vue +++ b/src/components/VuetifyLogo.vue @@ -10,6 +10,9 @@