mirror of
https://github.com/hanzoai/jest.git
synced 2026-09-24 16:59:57 +00:00
10 lines
261 B
JavaScript
10 lines
261 B
JavaScript
// Copyright (c) Meta Platforms, Inc. and affiliates.. All Rights Reserved.
|
|
|
|
import user from '../models/user';
|
|
|
|
jest.mock('../models/user');
|
|
|
|
test('if user model is mocked', () => {
|
|
expect(user.getAuthenticated()).toEqual({age: 622, name: 'Mock name'});
|
|
});
|