Files
shields/frontend/lib/pattern-helpers.spec.js
Paul Melnikow d9d8a3b227 Drop-downs for multiple choice in patterns (#2882)
You can see it in effect on the PyPI downloads and the David badges.
2019-02-18 11:15:58 -05:00

11 lines
316 B
JavaScript

import { test, given } from 'sazerac'
import { patternToOptions } from './pattern-helpers'
describe('Badge URL functions', function() {
test(patternToOptions, () => {
given('[^\\/]+?').expect(undefined)
given('abc|[^\\/]+').expect(undefined)
given('abc|def|ghi').expect(['abc', 'def', 'ghi'])
})
})