mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-17 08:01:13 +02:00
chore(#197): ran prettier on packages/bruno-lang
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const {
|
||||
bruToEnvJson
|
||||
} = require('../src');
|
||||
const { bruToEnvJson } = require('../src');
|
||||
|
||||
describe('bruToEnvJson', () => {
|
||||
it('should parse .bru file contents', () => {
|
||||
@ -11,23 +9,26 @@ describe('bruToEnvJson', () => {
|
||||
const result = bruToEnvJson(requestFile);
|
||||
|
||||
expect(result).toEqual({
|
||||
"variables": [{
|
||||
"enabled": true,
|
||||
"name": "host",
|
||||
"value": "https://www.google.com",
|
||||
"type": "text"
|
||||
}, {
|
||||
"enabled": true,
|
||||
"name": "jwt",
|
||||
"value": "secret",
|
||||
"type": "text"
|
||||
}, {
|
||||
"enabled": false,
|
||||
"name": "Content-type",
|
||||
"value": "application/json",
|
||||
"type": "text"
|
||||
}]
|
||||
variables: [
|
||||
{
|
||||
enabled: true,
|
||||
name: 'host',
|
||||
value: 'https://www.google.com',
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
enabled: true,
|
||||
name: 'jwt',
|
||||
value: 'secret',
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
enabled: false,
|
||||
name: 'Content-type',
|
||||
value: 'application/json',
|
||||
type: 'text'
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user