All files / src/mixins compute.js

100% Statements 5/5
100% Branches 1/1
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26      22x     101x   101x             101x             101x      
import { getResizeTransformation } from "../helpers/responsiveness";
import { computeOptions } from '../helpers/computeOptions'
 
export const compute = {
  methods: {
    computeURLOptions(inheritOptions = {}) {
      const responsiveOptions = getResizeTransformation(this.responsive, this.size, this.breakpoints)
 
      const baseOptions = {
        ...this.contextOptions,
        ...inheritOptions,
        ...this.$attrs,
        ...responsiveOptions
      }
 
      const options = computeOptions({
        accessibility: this.accessibility,
        withProgressive: this.progressive,
        baseOptions,
        extra: this.extraTransformations,
      })
 
      return options
    }
  }
}