Skip to content

Commit ebaf792

Browse files
committed
Test that styleName is deleted
1 parent 83dd1db commit ebaf792

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/linkClass.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('linkClass', () => {
9999
expect(subject.props.children[0].props.className).to.equal('foo-1');
100100
expect(subject.props.children[1].props.className).to.equal('bar-1');
101101
});
102-
it('styleName is reset to null', () => {
102+
it('styleName is unset', () => {
103103
let subject;
104104

105105
subject = <div>
@@ -112,8 +112,8 @@ describe('linkClass', () => {
112112
foo: 'foo-1'
113113
});
114114

115-
expect(subject.props.children[0].props.styleName).to.equal(null);
116-
expect(subject.props.children[1].props.styleName).to.equal(null);
115+
expect(subject.props.children[0].props.styleName).to.be.an('undefined');
116+
expect(subject.props.children[1].props.styleName).to.be.an('undefined');
117117
});
118118
});
119119
context('when multiple descendants have styleName and are iterable', () => {
@@ -272,7 +272,7 @@ describe('linkClass', () => {
272272
});
273273

274274
expect(subject.props.className).to.deep.equal('foo-1');
275-
expect(subject.props.styleName).to.deep.equal(null);
275+
expect(subject.props.styleName).to.be.an('undefined');
276276
});
277277

278278
it('unsets styleName property of the target element (deep)', () => {
@@ -289,6 +289,6 @@ describe('linkClass', () => {
289289
});
290290

291291
expect(subject.props.children[0].props.className).to.deep.equal('bar-1');
292-
expect(subject.props.children[0].props.styleName).to.deep.equal(null);
292+
expect(subject.props.children[0].props.styleName).to.be.an('undefined');
293293
});
294294
});

0 commit comments

Comments
 (0)