Skip to content

Commit 5c71c11

Browse files
committed
Fix test setup
1 parent c749f00 commit 5c71c11

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

fetch/karma.start.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global JSData:true, HttpAdapter:true, sinon:true, chai:true */
1+
/* global JSData:true, JSDataHttp:true, sinon:true, chai:true */
22
before(function () {
33
var Test = this
44
Test.fail = function (msg) {
@@ -14,7 +14,7 @@ before(function () {
1414
}
1515
Test.sinon = sinon
1616
Test.JSData = JSData
17-
Test.HttpAdapter = HttpAdapter
17+
Test.HttpAdapter = JSDataHttp.HttpAdapter
1818
Test.User = new JSData.Mapper({
1919
name: 'user'
2020
})
@@ -29,7 +29,7 @@ before(function () {
2929

3030
beforeEach(function () {
3131
var Test = this
32-
Test.adapter = new HttpAdapter()
32+
Test.adapter = new Test.HttpAdapter()
3333
Test.User.registerAdapter('http', Test.adapter, { default: true })
3434
Test.Post.registerAdapter('http', Test.adapter, { default: true })
3535

fetch/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
output: {
99
filename: '[name]',
1010
libraryTarget: 'umd',
11-
library: 'HttpAdapter'
11+
library: 'JSDataHttp'
1212
},
1313
externals: [
1414
{

karma.start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ before(function () {
2929

3030
beforeEach(function () {
3131
var Test = this
32-
Test.adapter = new JSDataHttp.HttpAdapter()
32+
Test.adapter = new Test.HttpAdapter()
3333
Test.User.registerAdapter('http', Test.adapter, { default: true })
3434
Test.Post.registerAdapter('http', Test.adapter, { default: true })
3535

node/mocha.start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ before(function () {
1717
}
1818
Test.sinon = require('sinon')
1919
Test.JSData = require('js-data')
20-
Test.HttpAdapter = require('./dist/js-data-http-node')
20+
Test.HttpAdapter = require('./dist/js-data-http-node').HttpAdapter
2121
Test.User = new Test.JSData.Mapper({
2222
name: 'user'
2323
})

0 commit comments

Comments
 (0)