InCuca/loopback-jest

View on GitHub
src/get-relation-matcher.js

Summary

Maintainability
A
0 mins
Test Coverage
import getMessage from './get-message';
import isRelationship from './is-relationship';

export default function (msgType, type) {
  return (...args) => {
    const pass = isRelationship(type, ...args);
    return { pass, message: getMessage(pass, msgType, ...args) };
  };
}