mirror of
https://github.com/datahub-project/datahub.git
synced 2026-02-05 02:32:58 +00:00
11 lines
394 B
JavaScript
11 lines
394 B
JavaScript
import { module, test } from 'qunit';
|
|
import { getCategory } from 'wherehows-web/utils/api/datasets/health';
|
|
|
|
module('Unit | Utility | api/datasets/health', function() {
|
|
test('extracting category from validator string works', function(assert) {
|
|
const testSTtring = 'com.linkedin.metadata.validators.OwnershipValidator';
|
|
|
|
assert.equal(getCategory(testSTtring), 'Ownership');
|
|
});
|
|
});
|