Sha256: f84d95835600e1261f3103a07981c8071ab6b55fb42b6a98db86cae11c39ff7d
Contents?: true
Size: 1.55 KB
Versions: 29
Compression:
Stored size: 1.55 KB
Contents
require 'spec_helper' describe SCSSLint::Linter::TransitionAll do context 'when transition-property is not set' do let(:scss) { <<-SCSS } p { } SCSS it { should_not report_lint } end context 'when transition-property is set to none' do let(:scss) { <<-SCSS } p { transition-property: none; } SCSS it { should_not report_lint } end context 'when transition-property is not set to all' do let(:scss) { <<-SCSS } p { transition-property: color; } SCSS it { should_not report_lint } end context 'when transition-property is set to all' do let(:scss) { <<-SCSS } p { transition-property: all; } SCSS it { should report_lint line: 2 } end context 'when transition shorthand for transition-property is not set' do let(:scss) { <<-SCSS } p { } SCSS it { should_not report_lint } end context 'when transition shorthand for transition-property is set to none' do let(:scss) { <<-SCSS } p { transition: none; } SCSS it { should_not report_lint } end context 'when transition shorthand for transition-property is not set to all' do let(:scss) { <<-SCSS } p { transition: color 1s linear; } SCSS it { should_not report_lint } end context 'when transition shorthand for transition-property is set to all' do let(:scss) { <<-SCSS } p { transition: all 1s linear; } SCSS it { should report_lint line: 2 } end end
Version data entries
29 entries across 29 versions & 1 rubygems