1
0
mirror of https://github.com/badges/shields.git synced 2025-11-02 04:13:20 +03:00

Migrate from CommonJS to ESM (#6651)

This commit is contained in:
Pierre-Yves B
2021-07-09 12:53:55 +01:00
committed by GitHub
parent 23678fe2f5
commit 23c0406bed
1130 changed files with 4457 additions and 6711 deletions

View File

@@ -1,8 +1,7 @@
'use strict'
const t = (module.exports = require('../tester').createServiceTester())
const { withRegex } = require('../test-validators')
const { sampleProjectUuid, noSymfonyToken } = require('./symfony-test-helpers')
import { createServiceTester } from '../tester.js'
import { withRegex } from '../test-validators.js'
import { sampleProjectUuid, noSymfonyToken } from './symfony-test-helpers.js'
export const t = await createServiceTester()
t.create('valid project violations')
.skipWhen(noSymfonyToken)