chore(#197): ran prettier on packages/bruno-lang

This commit is contained in:
Anoop M D
2023-09-22 00:42:48 +05:30
parent 5af2f68252
commit 116e050987
33 changed files with 732 additions and 741 deletions

View File

@ -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'
}
]
});
});
});