Skip to content

Commit 2f7e73e

Browse files
committed
fix tests
1 parent 8bfeb83 commit 2f7e73e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/replay/src/coreHandlers/util/getAttributesToRecord.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Attributes we are interested in:
1+
// Note that these are the serialized attributes and not attributes directly on
2+
// the DOM Node. Attributes we are interested in:
23
const ATTRIBUTES_TO_RECORD = new Set([
34
'id',
45
'class',

packages/replay/test/unit/coreHandlers/util/getAttributesToRecord.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ it('records only included attributes', function () {
44
expect(
55
getAttributesToRecord({
66
id: 'foo',
7-
classList: ['btn', 'btn-primary'],
7+
class: 'btn btn-primary',
88
}),
99
).toEqual({
1010
id: 'foo',
11-
classList: ['btn', 'btn-primary'],
11+
class: 'btn btn-primary',
1212
});
1313

1414
expect(
1515
getAttributesToRecord({
1616
id: 'foo',
17-
classList: ['btn', 'btn-primary'],
17+
class: 'btn btn-primary',
1818
tabIndex: 2,
1919
ariaDescribedBy: 'tooltip-1',
2020
}),
2121
).toEqual({
2222
id: 'foo',
23-
classList: ['btn', 'btn-primary'],
23+
class: 'btn btn-primary',
2424
});
2525

2626
expect(

0 commit comments

Comments
 (0)