blob: c25dbea64579ecd392dbfb9cfc5df497c4e39a76 [file] [log] [blame]
import './index';
import { $$ } from 'common-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);