1
0
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:
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,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',