Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #1

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

V2 #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

84 changes: 84 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,91 @@
##### 2.0.0-alpha.21 - 03 May 2016

- Fix peer dependencies

##### 2.0.0-alpha.20 - 02 May 2016

- Fix for SQL testing

##### 2.0.0-alpha.19 - 02 May 2016

- Fix for SQL testing

##### 2.0.0-alpha.18 - 02 May 2016

- Fix for SQL testing

##### 2.0.0-alpha.17 - 30 April 2016

- Fix for testing in IE9

##### 2.0.0-alpha.16 - 17 March 2016

- Added tests for "count" and "sum" methods

##### 2.0.0-alpha.15 - 12 March 2016

- Added tests for filtering in "with" sub queries

##### 2.0.0-alpha.14 - 08 March 2016

- Features and Methods are now opt-out rather than opt-in

##### 2.0.0-alpha.13 - 03 March 2016

- Added tests for subclassing adapters

##### 2.0.0-alpha.12 - 01 March 2016

- Some improved testing

##### 2.0.0-alpha.11 - 29 February 2016

- Some improved testing

##### 2.0.0-alpha.10 - 26 February 2016

- Some fixes

##### 2.0.0-alpha.9 - 26 February 2016

- Some fixes

##### 2.0.0-alpha.8 - 26 February 2016

- destroy and destroyAll no longer have return values

##### 2.0.0-alpha.7 - 26 February 2016

- Improved testing

##### 2.0.0-alpha.6 - 23 February 2016

- Improved testing of find, destroy, and update features

##### 2.0.0-alpha.5 - 18 February 2016

- rebased 1.5.0 changes

##### 1.5.0 - 18 February 2016

- Some improvements

##### 2.0.0-alpha.4 - 16 February 2016

- Better configurability

##### 2.0.0-alpha.3 - 16 February 2016

- Added source map

##### 2.0.0-alpha.2 - 16 February 2016

- Soem fixes

##### 2.0.0-alpha.1 - 13 February 2016

- Upgrades to work with 3.x js-data and adapters

##### 1.3.0 - 10 November 2015

- Fixed coMocha and some assertions
Expand Down
63 changes: 59 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,65 @@
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="64" height="64" />
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="96" height="96" />

## js-data-adapter-tests [![Slack Status][sl_b]][sl_l] [![npm version][npm_b]][npm_l] [![Circle CI][circle_b]][circle_l] [![npm downloads][dn_b]][dn_l]
# js-data-adapter-tests

[![Slack Status][sl_b]][sl_l]
[![npm version][npm_b]][npm_l]
[![Circle CI][circle_b]][circle_l]
[![npm downloads][dn_b]][dn_l]

Tests for [js-data](http://www.js-data.io/) adapters.

See [js-data-sql](https://github.com/js-data/js-data-sql/blob/master/mocha.start.js) for usage.
## Usage

### Node.js

```
npm install --save-dev js-data-adapter-tests mocha sinon chai babel-polyfill
```

`mocha.start.js`:

```js
require('babel-polyfill')

var JSData = require('js-data')
var JSDataAdapterTests = require('js-data-adapter-tests')
var MyAdapter = require('./')

global.assert = JSDataAdapterTests.assert;
global.sinon = JSDataAdapterTests.sinon;

JSDataAdapterTests.init({
// minimum required config
JSData: JSData,
Adapter: MyAdapter
})
```

### Karma

```
npm install --save-dev js-data-adapter-tests mocha sinon chai babel-polyfill karma karma-mocha karma-sinon karma-chai
```

`karma.start.js`:

```js
// babel-polyfill should be included by karma.conf.js

window.assert = JSDataAdapterTests.assert
// sinon should be loaded by karma.conf.js

JSDataAdapterTests.init({
// minimum required config
JSData: JSData,
Adapter: MyAdapter
})
```

See [js-data-rethinkdb](https://github.com/js-data/js-data-rethinkdb/blob/master/mocha.start.js) for a Node.js example.

See [js-data-localstorage](https://github.com/js-data/js-data-localstorage/blob/master/karma.start.js) for a Karma example.

### Changelog
[CHANGELOG.md](https://github.com/js-data/js-data-adapter-tests/blob/master/CHANGELOG.md)
Expand All @@ -16,7 +71,7 @@ See [js-data-sql](https://github.com/js-data/js-data-sql/blob/master/mocha.start

The MIT License (MIT)

Copyright (c) 2014-2015 Jason Dobry
Copyright (c) 2014-2016 Jason Dobry

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading