import React, { useEffect } from 'react';
import { teamixTest, productCalculate } from '@teamix/testing-capability';
import result from './data';

const InnerTest = () => {
  useEffect(() => {
    setTimeout(async () => {
      const testA = await teamixTest({
        testItem: ['NETWORK'],
        requestList: [],
      });

      console.log('网络测试 => ', testA);
      console.log(productCalculate(result));
    }, 1000);
  }, []);

  return <section id="module">网络测试</section>;
};

export default InnerTest;
