forked from Mirrors/keyoxide-web
Update tests to pass in scheme
, update dev quick start instructions
This commit is contained in:
parent
916dfcc6d3
commit
0dfc0cbe10
2 changed files with 10 additions and 6 deletions
|
@ -45,7 +45,7 @@ To run Keyoxide locally on your machine for development:
|
||||||
2. Swap over to LTS: `nvm use --lts`
|
2. Swap over to LTS: `nvm use --lts`
|
||||||
3. Ensure that yarn is installed: `npm install -g yarn`
|
3. Ensure that yarn is installed: `npm install -g yarn`
|
||||||
4. Install node dependencies: `yarn`
|
4. Install node dependencies: `yarn`
|
||||||
5. Run the server locally a la `SCHEME='http' DOMAIN='localhost:3000' yarn dev`
|
5. Run the server locally a la `SCHEME='http' DOMAIN='localhost:3000' MATRIX_ACCESS_TOKEN='XXXXXXyourTokenXXXXXX' MATRIX_INSTANCE='abc.yourmatrixdomain.tld' yarn dev`
|
||||||
|
|
||||||
Keyoxide will now be available at [http://localhost:3000](http://localhost:3000)
|
Keyoxide will now be available at [http://localhost:3000](http://localhost:3000)
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,8 @@ describe('browser', function () {
|
||||||
const local = await utils.generateProfileURL({
|
const local = await utils.generateProfileURL({
|
||||||
source: 'wkd',
|
source: 'wkd',
|
||||||
input: 'test@doip.rocks',
|
input: 'test@doip.rocks',
|
||||||
hostname: 'keyoxide.instance'
|
hostname: 'keyoxide.instance',
|
||||||
|
scheme: 'https'
|
||||||
})
|
})
|
||||||
local.should.equal('https://keyoxide.instance/test@doip.rocks')
|
local.should.equal('https://keyoxide.instance/test@doip.rocks')
|
||||||
})
|
})
|
||||||
|
@ -78,7 +79,8 @@ describe('browser', function () {
|
||||||
const local = await utils.generateProfileURL({
|
const local = await utils.generateProfileURL({
|
||||||
source: 'hkp',
|
source: 'hkp',
|
||||||
input: 'test@doip.rocks',
|
input: 'test@doip.rocks',
|
||||||
hostname: 'keyoxide.instance'
|
hostname: 'keyoxide.instance',
|
||||||
|
scheme: 'https'
|
||||||
})
|
})
|
||||||
local.should.equal('https://keyoxide.instance/hkp/test@doip.rocks')
|
local.should.equal('https://keyoxide.instance/hkp/test@doip.rocks')
|
||||||
})
|
})
|
||||||
|
@ -86,7 +88,8 @@ describe('browser', function () {
|
||||||
const local = await utils.generateProfileURL({
|
const local = await utils.generateProfileURL({
|
||||||
source: 'hkp',
|
source: 'hkp',
|
||||||
input: '3637202523E7C1309AB79E99EF2DC5827B445F4B',
|
input: '3637202523E7C1309AB79E99EF2DC5827B445F4B',
|
||||||
hostname: 'keyoxide.instance'
|
hostname: 'keyoxide.instance',
|
||||||
|
scheme: 'https'
|
||||||
})
|
})
|
||||||
local.should.equal('https://keyoxide.instance/3637202523E7C1309AB79E99EF2DC5827B445F4B')
|
local.should.equal('https://keyoxide.instance/3637202523E7C1309AB79E99EF2DC5827B445F4B')
|
||||||
})
|
})
|
||||||
|
@ -94,7 +97,8 @@ describe('browser', function () {
|
||||||
const local = await utils.generateProfileURL({
|
const local = await utils.generateProfileURL({
|
||||||
source: 'keybase',
|
source: 'keybase',
|
||||||
input: 'https://keybase.io/doip/pgp_keys.asc?fingerprint=3637202523E7C1309AB79E99EF2DC5827B445F4B',
|
input: 'https://keybase.io/doip/pgp_keys.asc?fingerprint=3637202523E7C1309AB79E99EF2DC5827B445F4B',
|
||||||
hostname: 'keyoxide.instance'
|
hostname: 'keyoxide.instance',
|
||||||
|
scheme: 'https'
|
||||||
})
|
})
|
||||||
local.should.equal('https://keyoxide.instance/keybase/doip/3637202523E7C1309AB79E99EF2DC5827B445F4B')
|
local.should.equal('https://keyoxide.instance/keybase/doip/3637202523E7C1309AB79E99EF2DC5827B445F4B')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue