chore(tests): fix broken test from using the wrong xit
Also, run clang-format.
This commit is contained in:
parent
e1f6679c75
commit
abff302e52
|
@ -4,6 +4,7 @@ import {
|
||||||
proxy,
|
proxy,
|
||||||
it,
|
it,
|
||||||
iit,
|
iit,
|
||||||
|
xit,
|
||||||
ddescribe,
|
ddescribe,
|
||||||
expect,
|
expect,
|
||||||
inject,
|
inject,
|
||||||
|
@ -103,23 +104,23 @@ export function main() {
|
||||||
// This test is disabled because it is flaky.
|
// This test is disabled because it is flaky.
|
||||||
// TODO: bford. make this test not flaky and reenable it.
|
// TODO: bford. make this test not flaky and reenable it.
|
||||||
xit('should replace history when triggered by a hashchange with a redirect',
|
xit('should replace history when triggered by a hashchange with a redirect',
|
||||||
inject([AsyncTestCompleter], (async) => {
|
inject([AsyncTestCompleter], (async) => {
|
||||||
var outlet = makeDummyOutlet();
|
var outlet = makeDummyOutlet();
|
||||||
|
|
||||||
router.registerPrimaryOutlet(outlet)
|
router.registerPrimaryOutlet(outlet)
|
||||||
.then((_) => router.config([
|
.then((_) => router.config([
|
||||||
new Redirect({path: '/a', redirectTo: ['B']}),
|
new Redirect({path: '/a', redirectTo: ['B']}),
|
||||||
new Route({path: '/b', component: DummyComponent, name: 'B'})
|
new Route({path: '/b', component: DummyComponent, name: 'B'})
|
||||||
]))
|
]))
|
||||||
.then((_) => {
|
.then((_) => {
|
||||||
router.subscribe((_) => {
|
router.subscribe((_) => {
|
||||||
expect(location.urlChanges).toEqual(['hash: a', 'replace: /b']);
|
expect(location.urlChanges).toEqual(['hash: a', 'replace: /b']);
|
||||||
async.done();
|
async.done();
|
||||||
});
|
});
|
||||||
|
|
||||||
location.simulateHashChange('a');
|
location.simulateHashChange('a');
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should push history when triggered by a hashchange without a redirect',
|
it('should push history when triggered by a hashchange without a redirect',
|
||||||
inject([AsyncTestCompleter], (async) => {
|
inject([AsyncTestCompleter], (async) => {
|
||||||
|
|
Loading…
Reference in New Issue