DEV: Apply syntax_tree formatting to spec/*

This commit is contained in:
David Taylor
2023-01-09 11:18:21 +00:00
parent 0cf6421716
commit cb932d6ee1
907 changed files with 58693 additions and 45909 deletions

View File

@ -1,18 +1,18 @@
# frozen_string_literal: true
RSpec.describe HighlightJs do
it 'can list languages' do
expect(HighlightJs.languages).to include('thrift')
it "can list languages" do
expect(HighlightJs.languages).to include("thrift")
end
it 'can generate a packed bundle' do
bundle = HighlightJs.bundle(["thrift", "http"])
it "can generate a packed bundle" do
bundle = HighlightJs.bundle(%w[thrift http])
expect(bundle).to match(/thrift/)
expect(bundle).to match(/http/)
expect(bundle).not_to match(/applescript/)
end
it 'can get a version string' do
it "can get a version string" do
version1 = HighlightJs.version("http|cpp")
version2 = HighlightJs.version("rust|cpp|fake")