@capillarytech/creatives-library 7.17.46 → 7.17.47

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.46",
4
+ "version": "7.17.47",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -1,52 +0,0 @@
1
- import { fromJS } from "immutable";
2
- import { makeSelectZalo, selectZaloDomain } from "../selectors";
3
- import { zaloTemplateInfoData } from "./mockData";
4
-
5
- describe("makeSelectZalo", () => {
6
- it("returns the expected object with default values when substate is empty", () => {
7
- // Arrange
8
- const state = fromJS({ zalo: {} });
9
- const expected = {
10
- zaloTemplateInfoStatus: undefined,
11
- zaloTemplateInfoValue: undefined,
12
- zaloTemplateInfoError: undefined,
13
- zaloTemplatePreviewData: undefined,
14
- };
15
- const selector = makeSelectZalo();
16
-
17
- // Act
18
- const result = selector(state);
19
-
20
- // Assert
21
- expect(result).toEqual(expected);
22
- });
23
-
24
- it("returns the expected object when substate has values", () => {
25
- // Arrange
26
- const state = fromJS({
27
- zalo: zaloTemplateInfoData,
28
- });
29
- const expected = {
30
- zaloTemplateInfoStatus: "success",
31
- zaloTemplateInfoValue: fromJS(zaloTemplateInfoData.zaloTemplateInfoValue),
32
- zaloTemplateInfoError: null,
33
- zaloTemplatePreviewData: undefined,
34
- };
35
- const selector = makeSelectZalo();
36
-
37
- // Act
38
- const result = selector(state);
39
-
40
- // Assert
41
- expect(result).toEqual(expected);
42
- });
43
-
44
- it("returns the expected object with default values when substate is empty", () => {
45
- // Arrange
46
- const state = fromJS({ zalo: {} });
47
- const expected = fromJS({});
48
- const result = selectZaloDomain(state);
49
- // Assert
50
- expect(result).toEqual(expected);
51
- });
52
- });