You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
464 B
JavaScript
19 lines
464 B
JavaScript
import assert from 'assert';
|
|
|
|
import scorePageInLink from './score-page-in-link';
|
|
|
|
describe('scorePageInLink(pageNum, isWp)', () => {
|
|
it('returns 50 if link contains a page num', () => {
|
|
assert.equal(scorePageInLink(1, false), 50);
|
|
});
|
|
|
|
it('returns 0 if link contains no page num', () => {
|
|
assert.equal(scorePageInLink(null, false), 0);
|
|
});
|
|
|
|
it('returns 0 if page is wordpress', () => {
|
|
assert.equal(scorePageInLink(10, true), 0);
|
|
});
|
|
});
|
|
|