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