mirror of
https://github.com/badges/shields.git
synced 2025-11-15 10:01:09 +03:00
Migrate from CommonJS to ESM (#6651)
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
'use strict'
|
||||
|
||||
const { test, given } = require('sazerac')
|
||||
const { render } = require('./pypi-python-versions.service')
|
||||
import { test, given } from 'sazerac'
|
||||
import PypiPythonVersions from './pypi-python-versions.service.js'
|
||||
|
||||
describe('PyPI Python Version', function () {
|
||||
test(render, function () {
|
||||
test(PypiPythonVersions.render, function () {
|
||||
// Major versions are hidden if minor are present.
|
||||
given({ versions: ['3', '3.4', '3.5', '3.6', '2', '2.7'] }).expect({
|
||||
message: '2.7 | 3.4 | 3.5 | 3.6',
|
||||
|
||||
Reference in New Issue
Block a user