testcase 修复
This commit is contained in:
parent
e092d6ad54
commit
cc36b8d03c
|
@ -220,18 +220,17 @@ exports[`Renderer:Form sendOn:true 1`] = `
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
class="a-Form-control a-TextControl is-disabled"
|
class="a-Form-control a-TextControl"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="a-TextControl-input"
|
class="a-TextControl-input"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
disabled=""
|
|
||||||
name="a"
|
name="a"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
type="text"
|
type="text"
|
||||||
value=""
|
value="1"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -247,18 +246,17 @@ exports[`Renderer:Form sendOn:true 1`] = `
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
class="a-Form-control a-TextControl is-disabled"
|
class="a-Form-control a-TextControl"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="a-TextControl-input"
|
class="a-TextControl-input"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
disabled=""
|
|
||||||
name="b"
|
name="b"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
type="text"
|
type="text"
|
||||||
value=""
|
value="2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -270,8 +268,7 @@ exports[`Renderer:Form sendOn:true 1`] = `
|
||||||
class="a-Panel-btnToolbar a-Panel-footer"
|
class="a-Panel-btnToolbar a-Panel-footer"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="a-Button a-Button--primary is-disabled"
|
class="a-Button a-Button--primary"
|
||||||
disabled=""
|
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
|
|
|
@ -453,5 +453,6 @@ test('Renderer:Form sendOn:true', async () => {
|
||||||
|
|
||||||
expect(fetcher).toHaveBeenCalled();
|
expect(fetcher).toHaveBeenCalled();
|
||||||
await p0;
|
await p0;
|
||||||
|
await wait(10);
|
||||||
expect(container).toMatchSnapshot();
|
expect(container).toMatchSnapshot();
|
||||||
});
|
});
|
|
@ -288,7 +288,7 @@ export class RootRenderer extends React.Component<RootRendererProps> {
|
||||||
|| window.location.search && qs.parse(window.location.search.substring(1));
|
|| window.location.search && qs.parse(window.location.search.substring(1));
|
||||||
|
|
||||||
const finalData = query ? createObject({
|
const finalData = query ? createObject({
|
||||||
...(data.__super ? data.__super: null),
|
...(data && data.__super ? data.__super: null),
|
||||||
...query,
|
...query,
|
||||||
query
|
query
|
||||||
}, data) : data;
|
}, data) : data;
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"sourceRoot": "src",
|
"sourceRoot": "src",
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
|
|
Loading…
Reference in New Issue