All files / ext.wikilambda.app/composables useEventLog.js

100% Statements 22/22
100% Branches 3/3
100% Functions 2/2
100% Lines 22/22

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 2327x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 149x 149x 149x 27x  
/*!
 * Event logging composable for Vue 3 Composition API.
 * Provides functions to handle event logging
 *
 * @module ext.wikilambda.app.composables.useEventLog
 * @copyright 2020– Abstract Wikipedia team; see AUTHORS.txt
 * @license MIT
 */
'use strict';
 
const eventLogUtils = require( '../utils/eventLogUtils.js' );
 
/**
 * Event logging composable
 *
 * @return {Object} Event logging composable API
 */
module.exports = function useEventLog() {
	return {
		submitInteraction: eventLogUtils.submitInteraction
	};
};