adds test for named maps params fix

This commit is contained in:
Francisco Dans 2015-02-13 16:10:20 +01:00
parent da7144a7fd
commit ecb72d9e8a

View File

@ -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',