ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/spec/old_js/fields.spec.js

Summary

Maintainability
A
0 mins
Test Coverage
require('../helpers/old_js_file_require_helper.js');

describe('Pass fields  to server', () => {
  it('returns url fields in name/value pairs', () => {
    var url = '/path/to/infinity';
    var args = {'foo': 'bar', 'lorem': 'ipsum'};
    expect(miqPassFields(url, args)).toEqual('/path/to/infinity?foo=bar&lorem=ipsum');
  });
});