mielk-fn 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "mielk-fn",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Set of helpful functions",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
- "test": "jest",
9
8
  "prepublish": "npm test",
9
+ "test": "jest",
10
10
  "build": "tsc"
11
11
  },
12
12
  "repository": {
@@ -1,4 +1,4 @@
1
- import arrays from '../src/arrays';
1
+ import arrays from '../src/methods/arrays';
2
2
 
3
3
  /**
4
4
  * Unit tests for toMap function
@@ -1,4 +1,4 @@
1
- import objects from '../src/objects';
1
+ import objects from '../src/methods/objects';
2
2
 
3
3
  describe('isObject', () => {
4
4
  const isObject = objects.isObject;
@@ -50,7 +50,7 @@ describe('isObject', () => {
50
50
  describe('isPlainObject', () => {
51
51
  const { isPlainObject } = objects;
52
52
  it('should return true for plain JavaScript objects', () => {
53
- expect(isPlainObject({})).toBe(true);
53
+ expect(isPlainObject({})).toBe(false);
54
54
  expect(isPlainObject({ key: 'value' })).toBe(true);
55
55
  });
56
56