blob: 7011aaf85cc4806802ba939618835c2ea7d7bb2b [file] [log] [blame]
import './index';
import fetchMock from 'fetch-mock';
import { $$ } from '../../../infra-sk/modules/dom';
import { testOnlySetSettings } from '../settings';
import { exampleStatusData } from './demo_data';
testOnlySetSettings({
baseRepoURL: 'https://github.com/flutter/flutter',
});
fetchMock.get('/json/v2/trstatus', JSON.stringify(exampleStatusData));
// Now that the mock RPC is setup, create the element
const ele = document.createElement('last-commit-sk');
$$('#container')!.appendChild(ele);