test(`passes correct token`, async () => { const res = await request(app) .get('/cubejs-api/v1/load?query={}') .set('Authorization', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M') .expect(400); expect(res.body && res.body.error).toStrictEqual( 'Query should contain either measures, dimensions or timeDimensions with granularities in order to be valid' ); });
// If the app already is installed but we can't determine the builtAgainst, then set it to something bogus app.events.on('pre-start', () => { if (!_.has(app.meta, 'builtAgainst')) { return lando.engine.list({project: app.project, all: true}).then(containers => { if (!_.isEmpty(containers)) { lando.cache.set(app.metaCache, updateBuiltAgainst(app), {persist: true}); } }); } });
export default function buildUrl(...paths) { const url = new URL( paths .map(p => p && (p + '').trim()) // Trim each string .filter(Boolean) // Remove empty strings or other falsy paths .join('/') ); // Replace 2+ consecutive slashes with 1. (e.g. `///` --> `/`) url.set('pathname', url.pathname.replace(/\/{2,}/g, '/')); return url.href; }
( function () { var geometry = new THREE.Geometry2( 3 ); geometry.vertices.set( [ - 0.5, - 0.5, 0, 0.5, - 0.5, 0, 0.5, 0.5, 0 ] ); return function ( material ) { THREE.Object3D.call( this ); this.geometry = geometry; this.material = ( material !== undefined ) ? material : new THREE.SpriteMaterial(); }; } )()
saveLoginInformations(data) { keyValueStore.set(GATEWAY_REFRESH_TOKEN_KEY, data.refreshToken); keyValueStore.set(GATEWAY_ACCESS_TOKEN_KEY, data.accessToken); keyValueStore.set(GATEWAY_DEVICE_ID_KEY, data.deviceId); keyValueStore.set(GATEWAY_SERIALIZED_KEYS_KEY, data.serializedKeys); keyValueStore.set(GATEWAY_RSA_PUBLIC_KEY_FINGERPRINT, data.rsaPublicKeyFingerprint); keyValueStore.set(GATEWAY_ECDSA_PUBLIC_KEY_FINGERPRINT, data.ecdsaPublicKeyFingerprint); }
( function () { var geometry = new THREE.Geometry2( 3 ); geometry.vertices.set( [ - 0.5, - 0.5, 0, 0.5, - 0.5, 0, 0.5, 0.5, 0 ] ); return function ( material ) { THREE.Object3D.call( this ); this.geometry = geometry; this.material = ( material !== undefined ) ? material : new THREE.SpriteMaterial(); }; } )()