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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user