Skip to content

Commit

Permalink
Actually use ospec
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-claudia committed Mar 16, 2020
1 parent 481fe6a commit 39f6fa9
Show file tree
Hide file tree
Showing 56 changed files with 59 additions and 55 deletions.
2 changes: 1 addition & 1 deletion api/tests/test-mountRedraw.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict"

// Low-priority TODO: remove the dependency on the renderer here.
var o = require("../../ospec/ospec")
var o = require("ospec")
var components = require("../../test-utils/components")
var domMock = require("../../test-utils/domMock")
var throttleMocker = require("../../test-utils/throttleMock")
Expand Down
2 changes: 1 addition & 1 deletion api/tests/test-router.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict"

// Low-priority TODO: remove the dependency on the renderer here.
var o = require("../../ospec/ospec")
var o = require("ospec")
var browserMock = require("../../test-utils/browserMock")
var throttleMocker = require("../../test-utils/throttleMock")

Expand Down
2 changes: 1 addition & 1 deletion api/tests/test-routerGetSet.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict"

// Low-priority TODO: remove the dependency on the renderer here.
var o = require("../../ospec/ospec")
var o = require("ospec")
var callAsync = require("../../test-utils/callAsync")
var browserMock = require("../../test-utils/browserMock")
var throttleMocker = require("../../test-utils/throttleMock")
Expand Down
4 changes: 4 additions & 0 deletions ospec/tests/test-ospec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ var o, callAsync
if (typeof require !== "undefined") {
/* eslint-disable global-require */
callAsync = require("../../test-utils/callAsync")
var warn = console.warn
// Let's drop the warning to leave the console a little less noisy.
console.warn = function() {}
o = require("../ospec")
console.warn = warn
/* eslint-enable global-require */
} else {
callAsync = typeof setImmediate === "function" ? setImmediate : setTimeout
Expand Down
2 changes: 1 addition & 1 deletion pathname/tests/test-buildPathname.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var buildPathname = require("../../pathname/build")

o.spec("buildPathname", function() {
Expand Down
2 changes: 1 addition & 1 deletion pathname/tests/test-compileTemplate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var parsePathname = require("../../pathname/parse")
var compileTemplate = require("../../pathname/compileTemplate")

Expand Down
2 changes: 1 addition & 1 deletion pathname/tests/test-parsePathname.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var parsePathname = require("../../pathname/parse")

o.spec("parsePathname", function() {
Expand Down
2 changes: 1 addition & 1 deletion promise/tests/test-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var o, callAsync, Promise
if (typeof require !== "undefined") {
/* eslint-disable global-require */
callAsync = require("../../test-utils/callAsync")
o = require("../../ospec/ospec")
o = require("ospec")
Promise = require("../../promise/polyfill")
/* eslint-enable global-require */
} else {
Expand Down
2 changes: 1 addition & 1 deletion querystring/tests/test-buildQueryString.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var buildQueryString = require("../../querystring/build")

o.spec("buildQueryString", function() {
Expand Down
2 changes: 1 addition & 1 deletion querystring/tests/test-parseQueryString.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var parseQueryString = require("../../querystring/parse")

o.spec("parseQueryString", function() {
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-attributes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-component.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var components = require("../../test-utils/components")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-createElement.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-createFragment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-createHTML.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-createNodes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-createText.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-event.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-fragment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var fragment = require("../../render/fragment")
var m = require("../../render/hyperscript")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-hyperscript.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var m = require("../../render/hyperscript")

o.spec("hyperscript", function() {
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-input.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-normalize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var Vnode = require("../../render/vnode")

o.spec("normalize", function() {
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-normalizeChildren.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var Vnode = require("../../render/vnode")

o.spec("normalizeChildren", function() {
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-normalizeComponentChildren.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var m = require("../../render/hyperscript")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-onbeforeremove.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var callAsync = require("../../test-utils/callAsync")
var components = require("../../test-utils/components")
var domMock = require("../../test-utils/domMock")
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-onbeforeupdate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var components = require("../../test-utils/components")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-oncreate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-oninit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-onremove.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var components = require("../../test-utils/components")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-onupdate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-render-hyperscript-integration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var m = require("../../render/hyperscript")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-render.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-textContent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-trust.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var trust = require("../../render/trust")

o.spec("trust", function() {
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-updateElement.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-updateFragment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-updateHTML.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-updateNodes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var components = require("../../test-utils/components")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")
Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-updateNodesFuzzer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion render/tests/test-updateText.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var domMock = require("../../test-utils/domMock")
var vdom = require("../../render/render")

Expand Down
2 changes: 1 addition & 1 deletion request/tests/test-jsonp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var xhrMock = require("../../test-utils/xhrMock")
var Request = require("../../request/request")
var PromisePolyfill = require("../../promise/promise")
Expand Down
2 changes: 1 addition & 1 deletion request/tests/test-request.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var callAsync = require("../../test-utils/callAsync")
var xhrMock = require("../../test-utils/xhrMock")
var Request = require("../../request/request")
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/test-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const access = util.promisify(fs.access)
const writeFile = util.promisify(fs.writeFile)
const unlink = util.promisify(fs.unlink)

const o = require("../../ospec/ospec")
const o = require("ospec")
const bundle = require("../_bundler-impl")

o.spec("bundler", async () => {
Expand Down
2 changes: 1 addition & 1 deletion stream/tests/test-scan.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var stream = require("../stream")

o.spec("scan", function() {
Expand Down
2 changes: 1 addition & 1 deletion stream/tests/test-scanMerge.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var stream = require("../stream")

o.spec("scanMerge", function() {
Expand Down
2 changes: 1 addition & 1 deletion stream/tests/test-stream.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var Stream = require("../stream")

o.spec("stream", function() {
Expand Down
2 changes: 1 addition & 1 deletion test-utils/tests/test-browserMock.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var browserMock = require("../../test-utils/browserMock")
var callAsync = require("../../test-utils/callAsync")
o.spec("browserMock", function() {
Expand Down
2 changes: 1 addition & 1 deletion test-utils/tests/test-callAsync.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"

var o = require("../../ospec/ospec")
var o = require("ospec")
var callAsync = require("../../test-utils/callAsync")

o.spec("callAsync", function() {
Expand Down
Loading

0 comments on commit 39f6fa9

Please sign in to comment.