@transferwise/components 41.5.2-next-b02429c613.28 → 41.5.2-next-4b4d5cc654.32

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "41.5.2-next-b02429c613.28+b02429c613",
3
+ "version": "41.5.2-next-4b4d5cc654.32+4b4d5cc654",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/umd/polyfill/main.js",
@@ -67,7 +67,7 @@
67
67
  "@transferwise/icons": "^3.1.2",
68
68
  "@transferwise/less-config": "^3.0.6",
69
69
  "@transferwise/neptune-css": "^12.5.8",
70
- "@transferwise/neptune-tokens": "8.0.0-next.18",
70
+ "@transferwise/neptune-tokens": "8.0.0-next.19",
71
71
  "@transferwise/test-config": "^5.0.0",
72
72
  "@types/jest": "^26.0.20",
73
73
  "@types/jscodeshift": "^0.11.0",
@@ -130,5 +130,5 @@
130
130
  "**/chokidar/glob-parent": "5.1.2",
131
131
  "**/fast-glob/glob-parent": "5.1.2"
132
132
  },
133
- "gitHead": "b02429c613c0e5a150cfc6554480ceea3298a4bd"
133
+ "gitHead": "4b4d5cc654f0c31803f456fd01eb81865947a118"
134
134
  }
@@ -27,6 +27,7 @@ const jsFiles = [
27
27
  { filename: 'DateLookup', folder: 'dateLookup' },
28
28
  { filename: 'PhoneNumberInput', folder: 'phoneNumberInput' },
29
29
  { filename: 'DateInput', folder: 'dateInput' },
30
+ { filename: 'InstructionsList', folder: 'instructionsList' },
30
31
  { filename: 'ProcessIndicator', folder: 'processIndicator' },
31
32
  { filename: 'Upload', folder: 'upload' },
32
33
  { filename: 'DefinitionList', folder: 'definitionList' },
@@ -1 +0,0 @@
1
- import{shallow}from"enzyme";import InstructionsList from".";import{jsx as _jsx}from"react/jsx-runtime";describe("InstructionsList",function(){it("should render dos list only",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Test this component","With multiple dos"]}));expect(a.find(".do")).toHaveLength(2)}),it("should render donts list only",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{donts:["Putting things into production without testing"]}));expect(a.find(".dont")).toHaveLength(1)}),it("should render sometimes list only",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{sometimes:["Putting things into production without testing?"]}));expect(a.find(".sometimes")).toHaveLength(1)}),it("should render do/dont lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Do this"],donts:["Don't do that"]}));expect(a.find(".do")).toHaveLength(1),expect(a.find(".dont")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(2)}),it("should render do/sometimes lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Do this"],sometimes:["Sometimes do that"]}));expect(a.find(".do")).toHaveLength(1),expect(a.find(".sometimes")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(2)}),it("should render dont/sometimes lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{donts:["Don't do this"],sometimes:["Sometimes do that"]}));expect(a.find(".dont")).toHaveLength(1),expect(a.find(".sometimes")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(2)}),it("should render all 3 lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Do this"],donts:["Don't do that"],sometimes:["Sometimes do that"]}));expect(a.find(".do")).toHaveLength(1),expect(a.find(".dont")).toHaveLength(1),expect(a.find(".sometimes")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(3)})});
@@ -1 +0,0 @@
1
- import"core-js/modules/es.array.find.js";import"core-js/modules/es.object.to-string.js";import{shallow}from"enzyme";import InstructionsList from".";import{jsx as _jsx}from"react/jsx-runtime";describe("InstructionsList",function(){it("should render dos list only",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Test this component","With multiple dos"]}));expect(a.find(".do")).toHaveLength(2)}),it("should render donts list only",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{donts:["Putting things into production without testing"]}));expect(a.find(".dont")).toHaveLength(1)}),it("should render sometimes list only",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{sometimes:["Putting things into production without testing?"]}));expect(a.find(".sometimes")).toHaveLength(1)}),it("should render do/dont lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Do this"],donts:["Don't do that"]}));expect(a.find(".do")).toHaveLength(1),expect(a.find(".dont")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(2)}),it("should render do/sometimes lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Do this"],sometimes:["Sometimes do that"]}));expect(a.find(".do")).toHaveLength(1),expect(a.find(".sometimes")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(2)}),it("should render dont/sometimes lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{donts:["Don't do this"],sometimes:["Sometimes do that"]}));expect(a.find(".dont")).toHaveLength(1),expect(a.find(".sometimes")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(2)}),it("should render all 3 lists",function(){var a=shallow(/*#__PURE__*/_jsx(InstructionsList,{dos:["Do this"],donts:["Don't do that"],sometimes:["Sometimes do that"]}));expect(a.find(".do")).toHaveLength(1),expect(a.find(".dont")).toHaveLength(1),expect(a.find(".sometimes")).toHaveLength(1),expect(a.find(".instruction")).toHaveLength(3)})});