Skip to content

Commit 0f03422

Browse files
committed
Fix contains->includes
1 parent 5bf9555 commit 0f03422

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test": "nx test:unit element-web",
3535
"test:playwright": "playwright test",
3636
"test:playwright:open": "pnpm test:playwright --ui",
37-
"test:playwright:screenshots": "playwright-screenshots-experimental pnpm playwright test --update-snapshots --project=Chrome --grep @screenshot",
37+
"test:playwright:screenshots": "playwright-screenshots --project=Chrome",
3838
"coverage": "pnpm test --coverage",
3939
"analyse:webpack-bundles": "webpack-bundle-analyzer webpack-stats.json webapp",
4040
"postinstall": "node scripts/pnpm-link.ts"
@@ -150,7 +150,6 @@
150150
"@casualbot/jest-sonar-reporter": "2.5.0",
151151
"@element-hq/element-call-embedded": "0.16.3",
152152
"@element-hq/element-web-playwright-common": "catalog:",
153-
"@element-hq/element-web-playwright-common-local": "workspace:*",
154153
"@fetch-mock/jest": "^0.2.20",
155154
"@jest/globals": "^30.2.0",
156155
"@nx/jest": "^22.5.0",

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/views/elements/EventListSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,5 +637,5 @@ export default class EventListSummary extends React.Component<Props, State> {
637637
* contains an item "banned".
638638
*/
639639
function containsBanned(transitions: string): boolean {
640-
return transitions.startsWith(TransitionType.Banned) || transitions.contains(`,${TransitionType.Banned}`);
640+
return transitions.startsWith(TransitionType.Banned) || transitions.includes(`,${TransitionType.Banned}`);
641641
}

0 commit comments

Comments
 (0)