Skip to content

Commit

Permalink
autofix e2e test12
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Jul 17, 2024
1 parent 684aa06 commit a8ac616
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion e2e/08-autofix/imports-order/Foo1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { IXTokenFactory, holaquetal } from '../../token/interfaces/IXTokenFactor
import './../../bpath/otherfolder/otherfolder/aContract.sol';
import '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';
import { FakeContract2 } from '../../../token/interfaces/FakeContract2.sol';
import './../../apath/zContract.sol';
import '../../apath/zContract.sol';
import 'http://github.com/owner/repo/blob/branch/path/to/Contract2.sol';
import { Afool1 } from './Afool1.sol';
import './Ownable.sol';
Expand Down
10 changes: 5 additions & 5 deletions e2e/08-autofix/imports-order/Foo1AfterFix.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
pragma solidity ^0.8.0;

import './../../../../token/interfaces/AFakeContract1.sol';
import '../../../../token/interfaces/FakeContract1.sol';
import { FakeContract2 } from '../../../token/interfaces/FakeContract2.sol';
import { FakeContract3 } from '../../../token/interfaces/FakeContract3.sol';
import './../../../../token/interfaces/FakeContract1.sol';
import { FakeContract2 } from './../../../token/interfaces/FakeContract2.sol';
import { FakeContract3 } from './../../../token/interfaces/FakeContract3.sol';
import './../../apath/zContract.sol';
import './../../bpath/otherfolder/otherfolder/aContract.sol';
import { holaquetal, IXTokenFactory } from '../../token/interfaces/IXTokenFactory.sol';
import { holaquetal, IXTokenFactory } from './../../token/interfaces/IXTokenFactory.sol';
import './../token/interfaces/IXTokenWrapper.sol';
import { IXTokenWrapper2 } from '../token/interfaces/IXTokenWrapper2.sol';
import { IXTokenWrapper2 } from './../token/interfaces/IXTokenWrapper2.sol';
import { Afool1 } from './Afool1.sol';
import { add as func, Point, Unauthorized } from './Foo.sol';
import { Initializable } from './openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';
Expand Down
2 changes: 1 addition & 1 deletion e2e/08-autofix/imports-order/Foo1BeforeFix.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { IXTokenFactory, holaquetal } from '../../token/interfaces/IXTokenFactor
import './../../bpath/otherfolder/otherfolder/aContract.sol';
import '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';
import { FakeContract2 } from '../../../token/interfaces/FakeContract2.sol';
import './../../apath/zContract.sol';
import '../../apath/zContract.sol';
import 'http://github.com/owner/repo/blob/branch/path/to/Contract2.sol';
import { Afool1 } from './Afool1.sol';
import './Ownable.sol';
Expand Down
2 changes: 1 addition & 1 deletion e2e/autofix-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ describe('e2e', function () {

it('should get the right report (10)', () => {
const reportLines = stdout.split('\n')
const finalLine = '10 problems (10 errors, 0 warnings)'
const finalLine = '18 problems (18 errors, 0 warnings)'
expect(reportLines[reportLines.length - 3]).to.contain(finalLine)
})
})
Expand Down

0 comments on commit a8ac616

Please sign in to comment.