mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 09:50:13 +01:00
Include to Wekan packages directory contents, so that meteor command would build all directly.
This also simplifies build scripts. Thanks to xet7 !
This commit is contained in:
parent
6117097a93
commit
73e265d8fd
354 changed files with 36977 additions and 106 deletions
|
|
@ -0,0 +1,35 @@
|
|||
Tinytest.add('Server - Fast Render - fast render supported route', function (test) {
|
||||
var expectedFastRenderCollData = [
|
||||
[{_id: "two", aa: 20}, {_id: "one", aa: 10}]
|
||||
];
|
||||
|
||||
var data = GetFRData('/the-fast-render-route');
|
||||
test.equal(data.collectionData['fast-render-coll'], expectedFastRenderCollData);
|
||||
});
|
||||
|
||||
Tinytest.add('Server - Fast Render - fast render supported route with params', function (test) {
|
||||
var expectedFastRenderCollData = [
|
||||
[{
|
||||
_id: "one",
|
||||
params: {id: 'the-id'},
|
||||
queryParams: {aa: "20"}
|
||||
}]
|
||||
];
|
||||
|
||||
var data = GetFRData('/the-fast-render-route-params/the-id?aa=20');
|
||||
test.equal(data.collectionData['fast-render-coll'], expectedFastRenderCollData);
|
||||
});
|
||||
|
||||
Tinytest.add('Server - Fast Render - no fast render supported route', function (test) {
|
||||
var data = GetFRData('/no-fast-render');
|
||||
test.equal(data.collectionData, {});
|
||||
});
|
||||
|
||||
Tinytest.add('Server - Fast Render - with group routes', function (test) {
|
||||
var expectedFastRenderCollData = [
|
||||
[{_id: "two", aa: 20}, {_id: "one", aa: 10}]
|
||||
];
|
||||
|
||||
var data = GetFRData('/fr/have-fr');
|
||||
test.equal(data.collectionData['fast-render-coll'], expectedFastRenderCollData);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue