src/lib/__tests__/format.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 12
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
mnd 0
bc 0
fnc 2
dl 0
loc 12
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
import { objToDotenv } from '../format';
2
3
describe('objToDotenv', () => {
4
  it('transform json into dotenv style key-value content', () => {
5
    const obj = {
6
      id: 1,
7
      foo: 'bar',
8
    };
9
    const result = objToDotenv(obj);
10
    expect(result).toMatchSnapshot();
11
  });
12
});
13