I hereby claim:
- I am aptiko on github.
- I am aptiko (https://keybase.io/aptiko) on keybase.
- I have a public key ASBD6_RbRJXGmepWnYO3o4T_r-jx8vISvrvHrAnQ0mIZIwo
To claim this, I am signing this object:
mouse_position = new ol.control.MousePosition({ | |
coordinateFormat: ol.coordinate.createStringXY(4), | |
projection: ‘EPSG:4326’ | |
}) |
I hereby claim:
To claim this, I am signing this object:
QUERY PLAN | |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Sort (cost=81686.50..83123.40 rows=574762 width=12) (actual time=294.183..352.196 rows=564469 loops=1) | |
Sort Key: _hyper_1_1254_chunk."timestamp" DESC | |
Sort Method: external merge Disk: 14408kB | |
-> Append (cost=0.28..20948.68 rows=574762 width=12) (actual time=0.028..159.398 rows=564469 loops=1) | |
-> Index Only Scan Backward using "1254_1254_enhydris_timeseriesrecord_pk" on _hyper_1_1254_chunk (cost=0.28..2.50 rows=1 width=12) (actual time=0.010..0.010 rows=0 loops=1) | |
Index Cond: (timeseries_id = 6661) | |
Heap Fetches: 0 | |
-> Index Scan using _hyper_1_1253_ch |
QUERY PLAN | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Limit (cost=0.28..2.50 rows=1 width=8) (actual time=0.119..0.119 rows=1 loops=1) | |
-> Custom Scan (ChunkAppend) on enhydris_timeseriesrecord (cost=0.28..2.50 rows=1 width=8) (actual time=0.118..0.118 rows=1 loops=1) | |
Order: enhydris_timeseriesrecord."timestamp" DESC | |
-> Index Only Scan Backward using "1254_1254_enhydris_timeseriesrecord_pk" on _hyper_1_1254_chunk (cost=0.28..2.50 rows=1 width=8) (actual time=0.039..0.039 rows=0 loops=1) | |
Index Cond: (timeseries_id = 6661) | |
Heap Fetches: 0 | |
-> Index Only Scan Backward using "1253_1253_enhydris_timeseriesrecord_pk" on _hyper_1_1253 |
import { mount } from '@vue/test-utils' | |
import Navbar from '@/components/Navbar.vue' | |
describe('Navbar', () => { | |
test('gets loggedOnUser from store', () => { | |
const wrapper = mount(Navbar) | |
wrapper.vm.$store.commit('setLoggedOnUser', 'alice') | |
expect(wrapper.vm.loggedOnUser).toBe('alice') | |
}) | |
}) |
export default { | |
computed: { | |
loggedOnUser() { | |
return this.$store.state.loggedOnUser | |
}, | |
}, | |
// ... | |
} |
import { mount } from '@vue/test-utils' | |
import Navbar from '@/components/Navbar.vue' | |
describe('Navbar', () => { | |
test('gets loggedOnUser from store', () => { | |
const wrapper = mount(Navbar, { | |
mocks: { | |
$store: { state: { loggedOnUser: 'alice' } }, | |
}, | |
}) | |
expect(wrapper.vm.loggedOnUser).toBe('alice') |
import { rest } from 'msw' | |
import { setupServer } from 'msw/node' | |
describe('LoginForm', () => { | |
let server | |
beforeAll(() => { | |
server = setupServer( | |
rest.post('/auth/login/', (request, response, context) => { | |
const username = request.body.username |
import LoginForm from '@/components/LoginForm.vue' | |
import axios from 'axios' | |
describe('LoginForm', () => { | |
let wrapper | |
beforeAll(() => { | |
wrapper = mount(LoginForm, { | |
mocks: { | |
$axios: axios, |
<template> | |
<div> | |
<b-modal @shown="focusUsername"> | |
<b-form-input | |
ref="username" | |
v-model="username" | |
:placeholder="Username" | |
></b-form-input> | |
</b-modal> | |
</div> |