Bläddra i källkod

move url-parser in services

pull/342/head
Guillaume Vincent 7 år sedan
förälder
incheckning
63e6b06c58
3 ändrade filer med 2 tillägg och 2 borttagningar
  1. +0
    -0
      src/services/url-parser.js
  2. +1
    -1
      src/views/PasswordGenerator.vue
  3. +1
    -1
      test/url-parser.js

src/domain/url-parser.js → src/services/url-parser.js Visa fil


+ 1
- 1
src/views/PasswordGenerator.vue Visa fil

@@ -121,7 +121,7 @@
import LessPass from 'lesspass';
import {mapGetters} from 'vuex';
import Clipboard from 'clipboard';
import {getSite, getPasswordFromUrlQuery} from '../domain/url-parser';
import {getSite, getPasswordFromUrlQuery} from '../services/url-parser';
import RemoveAutoComplete from '../components/RemoveAutoComplete.vue';
import MasterPassword from '../components/MasterPassword.vue';
import Options from '../components/Options.vue';


+ 1
- 1
test/url-parser.js Visa fil

@@ -1,5 +1,5 @@
import test from 'ava';
import * as urlParser from '../src/domain/url-parser';
import * as urlParser from '../src/services/url-parser';

test('urlParser.getDomainName', t => {
t.is('lesspass.com', urlParser.getDomainName('https://lesspass.com/#!/'));


Laddar…
Avbryt
Spara