mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-28 13:13:26 +08:00
15 lines
388 B
JavaScript
15 lines
388 B
JavaScript
import assert from 'node:assert/strict';
|
|
import { describe, it } from 'node:test';
|
|
|
|
import { roundPopularity } from './fetch-credential-setupability.mjs';
|
|
|
|
describe('roundPopularity', () => {
|
|
it('preserves a missing value', () => {
|
|
assert.equal(roundPopularity(null), null);
|
|
});
|
|
|
|
it('rounds a value to one decimal place', () => {
|
|
assert.equal(roundPopularity(0.26), 0.3);
|
|
});
|
|
});
|