Skip to content

Commit

Permalink
test: fix grammar in test comments (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed Mar 28, 2024
1 parent b0f85b4 commit 01b61c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/commands/spies-stubs-clocks.html
Expand Up @@ -128,7 +128,7 @@ <h4 id="stub"><a href="https://on.cypress.io/stub">cy.stub()</a></h4>
<div class="col-xs-7">
<h4 id="clock"><a href="https://on.cypress.io/clock">cy.clock()</a></h4>
<p>To control time in the browser, use the <a href="https://on.cypress.io/clock"><code>cy.clock()</code></a> command.</p>
<pre><code class="javascript">// create the date in UTC so its always the same
<pre><code class="javascript">// create the date in UTC so it's always the same
// no matter what local timezone the browser is running in
const now = new Date(Date.UTC(2017, 2, 14)).getTime()

Expand All @@ -150,7 +150,7 @@ <h4 id="clock"><a href="https://on.cypress.io/clock">cy.clock()</a></h4>
<div class="col-xs-7">
<h4 id="tick"><a href="https://on.cypress.io/tick">cy.tick()</a></h4>
<p>To move time in the browser, use the <a href="https://on.cypress.io/tick"><code>cy.tick()</code></a> command.</p>
<pre><code class="javascript">// create the date in UTC so its always the same
<pre><code class="javascript">// create the date in UTC so it's always the same
// no matter what local timezone the browser is running in
const now = new Date(Date.UTC(2017, 2, 14)).getTime()

Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js
Expand Up @@ -69,7 +69,7 @@ context('Spies, Stubs, and Clock', () => {
it('cy.clock() - control time in the browser', () => {
// https://on.cypress.io/clock

// create the date in UTC so its always the same
// create the date in UTC so it's always the same
// no matter what local timezone the browser is running in
const now = new Date(Date.UTC(2017, 2, 14)).getTime()

Expand All @@ -83,7 +83,7 @@ context('Spies, Stubs, and Clock', () => {
it('cy.tick() - move time in the browser', () => {
// https://on.cypress.io/tick

// create the date in UTC so its always the same
// create the date in UTC so it's always the same
// no matter what local timezone the browser is running in
const now = new Date(Date.UTC(2017, 2, 14)).getTime()

Expand Down

0 comments on commit 01b61c9

Please sign in to comment.