mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
fix tests
This commit is contained in:
@ -22,48 +22,48 @@ beforeEach(function () {
|
||||
test('get all languages', function () {
|
||||
$key = 'languages';
|
||||
|
||||
getJson('api/v1/config'.$key)
|
||||
getJson('api/v1/config?key='.$key)
|
||||
->assertOk();
|
||||
});
|
||||
|
||||
test('get all fiscal years', function () {
|
||||
$key = 'fiscal_years';
|
||||
|
||||
getJson('api/v1/config'.$key)
|
||||
getJson('api/v1/config?key='.$key)
|
||||
->assertOk();
|
||||
});
|
||||
|
||||
test('get all convert estimate options', function () {
|
||||
$key = 'convert_estimate_options';
|
||||
|
||||
getJson('api/v1/config'.$key)
|
||||
getJson('api/v1/config?key='.$key)
|
||||
->assertOk();
|
||||
});
|
||||
|
||||
test('get all retrospective edits', function () {
|
||||
$key = 'retrospective_edits';
|
||||
|
||||
getJson('api/v1/config'.$key)
|
||||
getJson('api/v1/config?key='.$key)
|
||||
->assertOk();
|
||||
});
|
||||
|
||||
test('get all currency converter servers', function () {
|
||||
$key = 'currency_converter_servers';
|
||||
|
||||
getJson('api/v1/config'.$key)
|
||||
getJson('api/v1/config?key='.$key)
|
||||
->assertOk();
|
||||
});
|
||||
|
||||
test('get all exchange rate drivers', function () {
|
||||
$key = 'exchange_rate_drivers';
|
||||
|
||||
getJson('api/v1/config'.$key)
|
||||
getJson('api/v1/config?key='.$key)
|
||||
->assertOk();
|
||||
});
|
||||
|
||||
test('get all custom field models', function () {
|
||||
$key = 'custom_field_models';
|
||||
|
||||
getJson('api/v1/config'.$key)
|
||||
getJson('api/v1/config?key='.$key)
|
||||
->assertOk();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user