Remove all the "should" grammar from tests
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
const tape = require('tape')
|
||||
const test = require('tape')
|
||||
const minDocument = require('min-document')
|
||||
const choo = require('../../')
|
||||
const view = require('../../html')
|
||||
|
||||
tape('should render on the server', function (t) {
|
||||
t.test('should render a static response', function (t) {
|
||||
test('server', function (t) {
|
||||
t.test('renders a static html response', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
const app = choo()
|
||||
@@ -17,7 +17,7 @@ tape('should render on the server', function (t) {
|
||||
t.equal(html, expected, 'strings are equal')
|
||||
})
|
||||
|
||||
t.test('can render without a real DOM', function (t) {
|
||||
t.test('renders without a real DOM', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
const app = choo()
|
||||
@@ -30,7 +30,7 @@ tape('should render on the server', function (t) {
|
||||
t.equal(html, expected, 'strings are equal')
|
||||
})
|
||||
|
||||
t.test('should accept a state object', function (t) {
|
||||
t.test('receives a state object', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
const app = choo()
|
||||
@@ -45,7 +45,7 @@ tape('should render on the server', function (t) {
|
||||
t.equal(html, expected, 'strings are equal')
|
||||
})
|
||||
|
||||
t.test('should extend flat existing models', function (t) {
|
||||
t.test('extends flat existing models', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
const app = choo()
|
||||
@@ -62,7 +62,7 @@ tape('should render on the server', function (t) {
|
||||
t.equal(html, expected, 'strings are equal')
|
||||
})
|
||||
|
||||
t.test('should extend namespaced existing models', function (t) {
|
||||
t.test('extends namespaced existing models', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
const app = choo()
|
||||
@@ -89,7 +89,7 @@ tape('should render on the server', function (t) {
|
||||
t.equal(html, expected, 'strings are equal')
|
||||
})
|
||||
|
||||
t.test('should throw if called without route', function (t) {
|
||||
t.test('throws if called without route', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
const app = choo()
|
||||
@@ -102,7 +102,7 @@ tape('should render on the server', function (t) {
|
||||
t.throws(app.toString.bind(null), /route must be a string/)
|
||||
})
|
||||
|
||||
t.test('should throw if calling send()', function (t) {
|
||||
t.test('throws when calling send()', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
const app = choo()
|
||||
|
||||
Reference in New Issue
Block a user