Skip to content

Commit

Permalink
Fix JSDoc and test description typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Frampton authored and Robert-Frampton committed Nov 1, 2017
1 parent 5425101 commit ba375c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/metal-component/src/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { EventEmitter, EventHandler } from 'metal-events';
* created() {
* }
*
* willRender() {
* willUpdate() {
* }
*
* rendered() {
Expand Down
8 changes: 4 additions & 4 deletions packages/metal-component/test/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('Component', function() {
assert.ok(comp.inDocument);
});

it('should run "willAttach" lifecycle method when the component about to attach', function() {
it('should run "willAttach" lifecycle method when the component is about to attach', function() {
class TestComponent extends Component {
}
sinon.spy(TestComponent.prototype, 'willAttach');
Expand All @@ -104,7 +104,7 @@ describe('Component', function() {
assert.strictEqual(1, comp.willAttach.callCount);
});

it('should emit "willAttach" lifecycle method when the component about to attach', function() {
it('should emit "willAttach" lifecycle event when the component is about to attach', function() {
var listener = sinon.stub();
class TestComponent extends Component {
created() {
Expand Down Expand Up @@ -165,7 +165,7 @@ describe('Component', function() {
assert.strictEqual(comp, comp.attach());
});

it('should run "willDetach" lifecycle method when the component about to detach', function() {
it('should run "willDetach" lifecycle method when the component is about to detach', function() {
class TestComponent extends Component {
}
sinon.spy(TestComponent.prototype, 'willDetach');
Expand All @@ -179,7 +179,7 @@ describe('Component', function() {
assert.strictEqual(1, comp.willDetach.callCount);
});

it('should emit "willDetach" lifecycle method when the component about to detach', function() {
it('should emit "willDetach" lifecycle event when the component is about to detach', function() {
var listener = sinon.stub();
class TestComponent extends Component {
created() {
Expand Down

0 comments on commit ba375c9

Please sign in to comment.