We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f56b3df commit 894497fCopy full SHA for 894497f
1 file changed
test/mapboxgl/core/MapExtendSpec.js
@@ -4,6 +4,7 @@ import { FetchRequest } from '../../../src/common/util/FetchRequest';
4
import cipher from 'node-forge/lib/cipher';
5
import { MapExtend } from '../../../src/mapboxgl/core/MapExtend';
6
import { decryptSources } from '../../../src/mapboxgl/core/decryptSource';
7
+import { EncryptRequest } from '../../../src/common/util/EncryptRequest';
8
9
describe('getServiceKey', () => {
10
let originalTimeout;
@@ -170,6 +171,15 @@ describe('getServiceKey', () => {
170
171
});
172
173
it('getServiceKey', async () => {
174
+ EncryptRequest.prototype.request = () => {
175
+ return {
176
+ json: () =>
177
+ new Promise((resolve) => {
178
+ resolve('P8h08GonNjuCB4+CAykAGmLYwNsiv4G6H8KFrFi7Afk=');
179
+ })
180
+ };
181
182
+
183
try {
184
const source = {
185
tiles: [
0 commit comments