@ember-data/serializer 5.4.0-alpha.2 → 5.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/blueprints/serializer-test/mocha-files/__root__/__path__/__test__.js +0 -20
- package/blueprints/serializer-test/mocha-rfc-232-files/__root__/__path__/__test__.js +0 -25
- package/blueprints/transform-test/mocha-files/__root__/__path__/__test__.js +0 -17
- package/blueprints/transform-test/mocha-rfc-232-files/__root__/__path__/__test__.js +0 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/serializer",
|
|
3
|
-
"version": "5.4.0-alpha.
|
|
3
|
+
"version": "5.4.0-alpha.3",
|
|
4
4
|
"description": "Provides Legacy JSON, JSON:API and REST Implementations of the Serializer Interface for use with @ember-data/store",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ember-data/private-build-infra": "5.4.0-alpha.
|
|
40
|
+
"@ember-data/private-build-infra": "5.4.0-alpha.3",
|
|
41
41
|
"@embroider/macros": "^1.13.1",
|
|
42
42
|
"ember-cli-babel": "^7.26.11",
|
|
43
43
|
"ember-cli-test-info": "^1.0.0"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@babel/preset-env": "^7.22.10",
|
|
54
54
|
"@babel/preset-typescript": "^7.22.5",
|
|
55
55
|
"@babel/runtime": "^7.22.10",
|
|
56
|
-
"@ember-data/store": "5.4.0-alpha.
|
|
56
|
+
"@ember-data/store": "5.4.0-alpha.3",
|
|
57
57
|
"@embroider/addon-dev": "^4.1.0",
|
|
58
58
|
"@glimmer/component": "^1.1.2",
|
|
59
59
|
"@rollup/plugin-babel": "^6.0.3",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { expect } from 'chai';
|
|
2
|
-
import { describe, it } from 'mocha';
|
|
3
|
-
|
|
4
|
-
import { setupModelTest } from 'ember-mocha';
|
|
5
|
-
|
|
6
|
-
describe('<%= friendlyTestDescription %>', function () {
|
|
7
|
-
setupModelTest('<%= dasherizedModuleName %>', {
|
|
8
|
-
// Specify the other units that are required for this test.
|
|
9
|
-
needs: ['serializer:<%= dasherizedModuleName %>'],
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
// Replace this with your real tests.
|
|
13
|
-
it('serializes records', function () {
|
|
14
|
-
let record = this.subject();
|
|
15
|
-
|
|
16
|
-
let serializedRecord = record.serialize();
|
|
17
|
-
|
|
18
|
-
expect(serializedRecord).to.be.ok;
|
|
19
|
-
});
|
|
20
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { expect } from 'chai';
|
|
2
|
-
import { describe, it } from 'mocha';
|
|
3
|
-
|
|
4
|
-
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
5
|
-
|
|
6
|
-
describe('<%= friendlyTestDescription %>', function () {
|
|
7
|
-
setupTest();
|
|
8
|
-
|
|
9
|
-
// Replace this with your real tests.
|
|
10
|
-
it('exists', function () {
|
|
11
|
-
let store = this.owner.lookup('service:store');
|
|
12
|
-
let serializer = store.serializerFor('<%= dasherizedModuleName %>');
|
|
13
|
-
|
|
14
|
-
expect(serializer).to.be.ok;
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
it('serializes records', function () {
|
|
18
|
-
let store = this.owner.lookup('service:store');
|
|
19
|
-
let record = store.createRecord('<%= dasherizedModuleName %>', {});
|
|
20
|
-
|
|
21
|
-
let serializedRecord = record.serialize();
|
|
22
|
-
|
|
23
|
-
expect(serializedRecord).to.be.ok;
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { expect } from 'chai';
|
|
2
|
-
import { describe, it } from 'mocha';
|
|
3
|
-
|
|
4
|
-
import { setupTest } from 'ember-mocha';
|
|
5
|
-
|
|
6
|
-
describe('<%= friendlyTestDescription %>', function () {
|
|
7
|
-
setupTest('transform:<%= dasherizedModuleName %>', {
|
|
8
|
-
// Specify the other units that are required for this test.
|
|
9
|
-
// needs: ['transform:foo']
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
// Replace this with your real tests.
|
|
13
|
-
it('exists', function () {
|
|
14
|
-
let transform = this.subject();
|
|
15
|
-
expect(transform).to.be.ok;
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { expect } from 'chai';
|
|
2
|
-
import { describe, it } from 'mocha';
|
|
3
|
-
|
|
4
|
-
import { setupTest } from '<%= modulePrefix %>/tests/helpers';
|
|
5
|
-
|
|
6
|
-
describe('<%= friendlyTestDescription %>', function () {
|
|
7
|
-
setupTest();
|
|
8
|
-
|
|
9
|
-
// Replace this with your real tests.
|
|
10
|
-
it('exists', function () {
|
|
11
|
-
let transform = this.owner.lookup('transform:<%= dasherizedModuleName %>');
|
|
12
|
-
expect(transform).to.be.ok;
|
|
13
|
-
});
|
|
14
|
-
});
|