mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Added test case
This commit is contained in:
parent
4046444eb0
commit
3e06466035
@ -271,4 +271,14 @@ describe('marko/marko-async' , function() {
|
|||||||
}, done);
|
}, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should allow data provider function to only have a callback parameter", function(done) {
|
||||||
|
testRender('test-project/html-templates/async-fragment-function-data-provider.marko', {
|
||||||
|
userInfo: function(done) {
|
||||||
|
done(null, {
|
||||||
|
name: 'John'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, done);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user