blob: 2488094241b7bbc1f3d83c4d34c6b3af13a81a9a [file] [log] [blame] [edit]
import './index';
import { $$ } from '../../../infra-sk/modules/dom';
import { BlamelistPanelSk } from './blamelist-panel-sk';
import {
blamelist19,
clBlamelist,
fakeNow,
nonStandardCommits,
} from './demo_data';
import { testOnlySetSettings } from '../settings';
Date.now = () => fakeNow;
testOnlySetSettings({
baseRepoURL: 'https://github.com/example/example',
});
let ele = new BlamelistPanelSk();
ele.commits = blamelist19.slice(0, 2);
$$('#single_commit')!.appendChild(ele);
ele = new BlamelistPanelSk();
ele.commits = clBlamelist;
$$('#single_cl_commit')!.appendChild(ele);
ele = new BlamelistPanelSk();
ele.commits = blamelist19.slice(0, 4);
$$('#some_commits')!.appendChild(ele);
ele = new BlamelistPanelSk();
ele.commits = blamelist19;
$$('#many_commits')!.appendChild(ele);
ele = new BlamelistPanelSk();
ele.commits = nonStandardCommits;
$$('#non_standard_commits')!.appendChild(ele);