mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
linting
This commit is contained in:
parent
bb692f4bc9
commit
70f4cdb2b0
2 changed files with 8 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
import { v4 as uuidv4 } from 'uuid';
|
||||
import {v4 as uuidv4} from 'uuid';
|
||||
|
||||
const getHeaders = (contentType) => {
|
||||
return {
|
||||
'X-Correlation-ID': uuidv4()+'_'+uuidv4(),
|
||||
'X-Correlation-ID': uuidv4() + '_' + uuidv4(),
|
||||
'Accept': contentType,
|
||||
'Content-Type': contentType,
|
||||
};
|
||||
|
|
|
@ -127,7 +127,8 @@ if (process.env.VCR_MODE && !process.env.VCR_OFF) {
|
|||
},
|
||||
});
|
||||
// using exclude above would still require re-recording everything...
|
||||
polly.server.any().on('request', req => {
|
||||
polly.server.any()
|
||||
.on('request', req => {
|
||||
if (req.hasHeader('X-Correlation-ID')) {
|
||||
req.setHeader('X-Correlation-ID', ['null']);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue