Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Aug 23, 2022
1 parent 25483c2 commit c9ab840
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/npm-package-json-lint-config/test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
/**
* External dependencies
*/
import { isPlainObject } from 'is-plain-object';

/**
* Internal dependencies
*/
import config from '../';

describe( 'npm-package-json-lint config tests', () => {
it( 'should be an object', () => {
expect( isPlainObject( config ) ).toBeTruthy();
expect( config ).not.toBeNull();
expect( typeof config ).toBe( 'object' );
} );

it( 'should have rules property as an object', () => {
expect( isPlainObject( config.rules ) ).toBeTruthy();
expect( config.rules ).not.toBeNull();
expect( typeof config.rules ).toBe( 'object' );
} );
} );

0 comments on commit c9ab840

Please sign in to comment.