Skip to content

Commit d5ac4b0

Browse files
author
Kai Eichinger
committed
Upgrade Cypress and move over from private account to Becklyn organization
1 parent e3fb538 commit d5ac4b0

File tree

5 files changed

+97
-12
lines changed

5 files changed

+97
-12
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* the „selected” header inside the dropdown
77
* when rendering the current text/tags instead of the dropdown's placeholder
88

9+
* (internal) Upgrade Cypress and move over from private account to Becklyn organization.
10+
911

1012
2.3.0
1113
=====

cypress.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"supportFile": "tests/cypress/support/index.js",
77
"videosFolder": "tests/cypress/videos",
88
"video": false,
9-
"projectId": "5fbn4m"
9+
"projectId": "wuvbab"
1010
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "auslese",
3+
"version": "2.3.0",
34
"description": "A tiny + fast choice / dropdown preact component.",
45
"license": "BSD-3-Clause",
56
"author": "Becklyn Studios <[email protected]>",
@@ -8,7 +9,6 @@
89
"type": "git",
910
"url": "git://github.com/Becklyn/auslese.git"
1011
},
11-
"version": "2.3.0",
1212
"main": "js/index.js",
1313
"scripts": {
1414
"build": "npm run clean && ./node_modules/.bin/tsc -v && npm run build:ts",
@@ -18,7 +18,7 @@
1818
"prepublishOnly": "npm run build",
1919
"test": "npm run test:build && npm run test:lib",
2020
"test:build": "ava",
21-
"test:lib": "node_modules/.bin/cypress run --record --key 8c940896-0fff-43aa-906f-ca1bda96d8ba",
21+
"test:lib": "node_modules/.bin/cypress run --record --key 481e3c26-1e58-4267-b0ce-469cb401d60d\n",
2222
"test:start": "node_modules/.bin/cypress open"
2323
},
2424
"dependencies": {
@@ -35,7 +35,7 @@
3535
"@types/match-sorter": "^4.0.0",
3636
"ava": "^3.10.1",
3737
"babel-loader": "^8.1.0",
38-
"cypress": "^4.11.0",
38+
"cypress": "^8.0.0",
3939
"glob": "^7.1.6",
4040
"node-sass": "^4.14.1",
4141
"terser": "^4.8.0",

tests/ava/size-limits.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import Terser from "terser";
66
// mapping of files to limit
77
let files = {
88
'index.js': 100,
9-
'Auslese.js': 3900,
9+
'Auslese.js': 3950,
1010
'automount.js': 1950,
11-
'lib/helper.js': 1025,
11+
'lib/helper.js': 1050,
1212
'lib/icons.js': 1350,
1313
'components/Choice.js': 500,
14-
'components/CurrentLabels.js': 580,
15-
'components/CurrentText.js': 300,
16-
'components/Group.js': 425,
14+
'components/CurrentLabels.js': 650,
15+
'components/CurrentText.js': 350,
16+
'components/Group.js': 500,
1717
};
1818

1919

tests/cypress/integration/flattenChoices_spec.js

+86-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,93 @@ import {flattenChoices} from "../../../js/lib/helper";
44
describe('flattenChoices() Tests', () => {
55
it("should properly flatten", () => {
66
const input = [
7-
{headline: null, choices: [1,2,3]},
8-
{headline: null, choices: [4,5,6]},
7+
{
8+
headline: null,
9+
choices: [
10+
{
11+
label: 1,
12+
value: 1,
13+
},
14+
{
15+
label: 2,
16+
value: 2,
17+
},
18+
{
19+
label: 3,
20+
value: 3,
21+
},
22+
],
23+
},
24+
{
25+
headline: "Group Headline",
26+
choices: [
27+
{
28+
label: 4,
29+
value: 4,
30+
},
31+
{
32+
label: 5,
33+
value: 5,
34+
},
35+
{
36+
label: 6,
37+
value: 6,
38+
},
39+
],
40+
},
941
];
1042

11-
expect(flattenChoices(input)).to.eql([1, 2, 3, 4, 5, 6]);
43+
const expected = [
44+
{
45+
label: 1,
46+
value: 1,
47+
group: {
48+
headline: null,
49+
header: undefined,
50+
},
51+
},
52+
{
53+
label: 2,
54+
value: 2,
55+
group: {
56+
headline: null,
57+
header: undefined,
58+
},
59+
},
60+
{
61+
label: 3,
62+
value: 3,
63+
group: {
64+
headline: null,
65+
header: undefined,
66+
},
67+
},
68+
{
69+
label: 4,
70+
value: 4,
71+
group: {
72+
headline: "Group Headline",
73+
header: undefined,
74+
},
75+
},
76+
{
77+
label: 5,
78+
value: 5,
79+
group: {
80+
headline: "Group Headline",
81+
header: undefined,
82+
},
83+
},
84+
{
85+
label: 6,
86+
value: 6,
87+
group: {
88+
headline: "Group Headline",
89+
header: undefined,
90+
},
91+
},
92+
];
93+
94+
expect(flattenChoices(input)).to.eql(expected);
1295
});
1396
});

0 commit comments

Comments
 (0)