@ofm/history
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ajax

describe('test resetHistory', () => {
    test('resetHistory', async () => {
        const location = { pathname: '/abc' };
        expect(history.createHref(location)).toEqual('/abc');
        resetHistory({
            basename: '/api',
        });
        expect(history.createHref(location)).toEqual('/api/abc');
    });
});

related

history

Readme

Keywords

Package Sidebar

Install

npm i @ofm/history

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.34 kB

Total Files

5

Last publish

Collaborators

  • void327
  • boborua
  • yuecjnadt