From 4d587c1f477c36205cd66d1bd80a0c0a82aed1be Mon Sep 17 00:00:00 2001 From: Sang Huynh Date: Fri, 16 Jun 2023 14:41:48 +0700 Subject: [PATCH] [#385] Add tests for package_json --- .template/spec/variants/web/package_json_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.template/spec/variants/web/package_json_spec.rb b/.template/spec/variants/web/package_json_spec.rb index ace621f8..60cdb296 100644 --- a/.template/spec/variants/web/package_json_spec.rb +++ b/.template/spec/variants/web/package_json_spec.rb @@ -29,6 +29,10 @@ expect(subject['scripts']).to include('build:css') end + it 'adds the script for bundling css in production' do + expect(subject['scripts']).to include('build:css-production') + end + it 'adds the script for bundling postcss' do expect(subject['scripts']).to include('postcss') expect(subject['scripts']).to include('build:postcss')