diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 031d342..a769c62 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -22,7 +22,7 @@ jobs: with: args: > -Dsonar.organization=retejs - -Dsonar.projectKey=retejs-${{ github.event.repository.name }} + -Dsonar.projectKey=${{ github.event.repository.name }} -Dsonar.sources=src/ -Dsonar.test.exclusions=tests/** -Dsonar.tests=tests/ diff --git a/src/index.js b/src/index.js index 83c7d10..e9f9e0f 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,7 @@ function a() { console.log('a', eval(window.data)); + console.log('b', eval(window.data)); + console.log('c', eval(window.data)); } module.exports = { diff --git a/tests/index.test.js b/tests/index.test.js index 0aef01d..f318038 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -5,4 +5,8 @@ describe('a', () => { // is function expect(a).toBeInstanceOf(Function) }) + it('test2', () => { + // is function + expect(a).toBeInstanceOf(Function) + }) }) \ No newline at end of file