adds test for named maps params fix
This commit is contained in:
parent
da7144a7fd
commit
ecb72d9e8a
@ -110,6 +110,21 @@ QUnit.module('provider.windshaft', {
|
||||
ok(lastCall.indexOf("stat_tag=test") !== -1);
|
||||
})
|
||||
|
||||
test("include extra params in named maps", function() {
|
||||
windshaft_named = new torque.providers.windshaft({
|
||||
table: 'test',
|
||||
user: "rambo",
|
||||
stat_tag: 'test',
|
||||
named_map: {
|
||||
name: 'test_named',
|
||||
params: {
|
||||
"wololo": "wololo"
|
||||
}
|
||||
}
|
||||
});
|
||||
ok(lastCall.indexOf("wololo%22%3A%22wololo") !== -1);
|
||||
})
|
||||
|
||||
test("auth_token as array param", function() {
|
||||
windshaft_named = new torque.providers.windshaft({
|
||||
table: 'test',
|
||||
|
Loading…
Reference in New Issue
Block a user